JDBCCategoryDataset « Dataset « JFreeChart Q&A





1. From DefaultCategoryDataset to JDBCCategoryDataset    jfree.org

Code: Select all s_text = comboAxisX.getSelectedItem().toString(); if (comboxAxisY.getSelectedIndex()<0 && comboItemY.getSelectedIndex()<0 && comboAxisZ.getSelectedIndex()<0){ DescriptionAxisX = comboAxisX.getSelectedItem().toString(); DescriptionAxisY = comboAxisX.getSelectedItem().toString(); String seriesKey = DescriptionAxisY; dataset.clear(); int ItemCol = fieldList.indexOf(comboAxisX.getSelectedItem()); int c= 0; int maxQ =0; String strItemX ...

2. Help needed in getting an example of JDBCCategoryDataset    jfree.org

I am new to jfreechart. I am actually looking forward to either using chartcreator (Jsf component developed by cagatay Civici) out of the box or create my own custom jsf compliant charting component to suffice to my needs. My need is to basically create a graph containing multiple line charts in it and the data would be fed from the database ...

3. JDBCCategoryDataset    jfree.org

hello, i have a question to the JDBCCategoryDataset. i have a vertical linechart JFreeChart chart = ChartFactory.createLineChart( chartTitle, // chart title xaxisLabel, // x axis label yaxisLabel, // y axis label dataset, // data PlotOrientation.VERTICAL, true, // include legend true, // tooltips false // urls ); i get the values for it from a mysql database. At the first, there is ...

4. Column/Row access in JDBCCategoryDataset flipped?    jfree.org

Column/Row access in JDBCCategoryDataset flipped? by elemgee Tue Jan 06, 2009 3:04 pm I have been having difficulty with a JDBCCategoryDataset that seems to be related to columns and rows behaving unexpectedly. It seems that the column count returns the rows and the rows return the columns. This is in JFreeChart 1.0.12 and JCommon 1.0.15 Here is a quick snippet ...

5. JDBCCategoryDataset Column Ordering    jfree.org

I am having trouble using the JDBCCategoryDataset object when trying to create a bar chart with muliple bars per grouping, as per this example. http://www.java2s.com/Code/Java/Chart/J ... rtDemo.htm What is frustrating me is that the column ordering for the JDBCCategoryDataset seems to be different from the setValue method when using a CategoryDataset. When using the setValue method it states that the ordering ...

6. JDBCCategoryDataset suggestion    jfree.org

Hi, I noticed in JDBCCategoryDataset class on line 235 it reads Comparable columnKey = metaData.getColumnName(column); I propose that it would be instead Comparable columnKey = metaData.getColumnLabel(column); The column name retrieves the name of the column in the original table and thus ignores renaming of the column using SQL's AS construct. So it leaves no opportunity for the user to modify the ...