Difference between revisions of "List of charts"
Line 56: | Line 56: | ||
} | } | ||
− | chart = chartMaker.getCategoryChart("Bar", chartTitle, "Category", "value", dataTable, no_category, pairs, "") | + | chart = chartMaker.getCategoryChart("Bar", |
+ | chartTitle, "Category", "value", dataTable, no_category, pairs, | ||
+ | "") | ||
chartPanel = new ChartPanel(chart, false); | chartPanel = new ChartPanel(chart, false); | ||
</pre> | </pre> | ||
Line 71: | Line 73: | ||
} | } | ||
− | chart = chartMaker.getCategoryChart("Bar", chartTitle, "Category", "value", dataTable, no_category, pairs, "horizontal") | + | chart = chartMaker.getCategoryChart("Bar", |
+ | chartTitle, "Category", "value", dataTable, no_category, pairs, | ||
+ | "horizontal") | ||
chartPanel = new ChartPanel(chart, false); | chartPanel = new ChartPanel(chart, false); | ||
</pre> | </pre> | ||
Line 86: | Line 90: | ||
} | } | ||
− | chart = chartMaker.getCategoryChart("Bar", chartTitle, "Category", "value", dataTable, no_category, pairs, "3D") | + | chart = chartMaker.getCategoryChart("Bar", |
+ | chartTitle, "Category", "value", dataTable, no_category, pairs, | ||
+ | "3D") | ||
chartPanel = new ChartPanel(chart, false); | chartPanel = new ChartPanel(chart, false); | ||
</pre> | </pre> | ||
Line 101: | Line 107: | ||
} | } | ||
− | chart = chartMaker.getCategoryChart("Bar", chartTitle, "Category", "value", dataTable, no_category, pairs, "layered"); | + | chart = chartMaker.getCategoryChart("Bar", |
+ | chartTitle, "Category", "value", dataTable, no_category, pairs, | ||
+ | "layered"); | ||
chartPanel = new ChartPanel(chart, false); | chartPanel = new ChartPanel(chart, false); | ||
</pre> | </pre> | ||
Line 116: | Line 124: | ||
} | } | ||
− | chart = chartMaker.getCategoryChart("Bar", chartTitle, "Category", "value", dataTable, no_category, pairs, "stacked"); | + | chart = chartMaker.getCategoryChart("Bar", |
+ | chartTitle, "Category", "value", dataTable, no_category, pairs, | ||
+ | "stacked"); | ||
chartPanel = new ChartPanel(chart, false); | chartPanel = new ChartPanel(chart, false); | ||
</pre> | </pre> | ||
Line 133: | Line 143: | ||
chart = chartMaker.getCategoryChart("Bar", "Product Cost Breakdown", | chart = chartMaker.getCategoryChart("Bar", "Product Cost Breakdown", | ||
"Expense Category", | "Expense Category", | ||
− | "Cost Per Unit", dataTable, no_category, pairs, "waterfall"); | + | "Cost Per Unit", dataTable, no_category, pairs, |
+ | "waterfall"); | ||
chartPanel = new ChartPanel(chart, false); | chartPanel = new ChartPanel(chart, false); | ||
</pre> | </pre> | ||
Line 148: | Line 159: | ||
} | } | ||
− | chart = chartMaker.getCategoryChart("BarStat", chartTitle, "Type", "value", dataTable, no_category, pairs, ""); | + | chart = chartMaker.getCategoryChart("BarStat", |
+ | chartTitle, "Type", "value", dataTable, no_category, pairs, | ||
+ | ""); | ||
chartPanel = new ChartPanel(chart, false); | chartPanel = new ChartPanel(chart, false); | ||
</pre> | </pre> | ||
Line 164: | Line 177: | ||
} | } | ||
− | chart = chartMaker.getCategoryChart("BarStatRaw", chartTitle, "Type", "value", dataTable, no_category, pairs, ""); | + | chart = chartMaker.getCategoryChart("BarStatRaw", |
+ | chartTitle, "Type", "value", dataTable, no_category, pairs, | ||
+ | ""); | ||
chartPanel = new ChartPanel(chart, false); | chartPanel = new ChartPanel(chart, false); | ||
</pre> | </pre> | ||
Line 178: | Line 193: | ||
pairs[i][1] = i*2+1; //column 0 stores time | pairs[i][1] = i*2+1; //column 0 stores time | ||
} | } | ||
− | chart = chartMaker.getXYChart("Bar",chartTitle, "Category", "value", dataTable, no_series, pairs,"Year"); | + | chart = chartMaker.getXYChart("Bar", |
+ | chartTitle, "Category", "value", dataTable, no_series, pairs, | ||
+ | "Year"); | ||
chartPanel = new ChartPanel(chart, false); | chartPanel = new ChartPanel(chart, false); | ||
</pre> | </pre> | ||
Line 188: | Line 205: | ||
JFreeChart getCategoryChart(java.lang.String chartType, java.lang.String title, java.lang.String xLabel, java.lang.String yLabel, javax.swing.JTable table, int numberOfCategory, int[][] pairs, java.lang.String other) | JFreeChart getCategoryChart(java.lang.String chartType, java.lang.String title, java.lang.String xLabel, java.lang.String yLabel, javax.swing.JTable table, int numberOfCategory, int[][] pairs, java.lang.String other) | ||
− | Options for the getCategoryChart method are: <strong>horizontal/vertical, 3D, stacked/layered/waterfall, year/month/day/minute</strong>. ''Vertical'' is the default. | + | Options for the getXYChart method's parameter'''''chartType''''' are: <strong>bar/barstat/barstatraw/line/linestat/linestatraw/step/area/areatime/eventfreq/spiderweb</strong>. ''bar'' is the default. |
+ | |||
+ | Options for the getCategoryChart method's parameter'''''other''''' are: <strong>horizontal/vertical, 3D, stacked/layered/waterfall, year/month/day/minute</strong>. ''Vertical'' is the default. | ||
JFreeChart getXYChart(java.lang.String chartType, java.lang.String title, java.lang.String xLabel, java.lang.String yLabel, javax.swing.JTable table, int numberOfSeries, int[][] pairs, java.lang.String other) | JFreeChart getXYChart(java.lang.String chartType, java.lang.String title, java.lang.String xLabel, java.lang.String yLabel, javax.swing.JTable table, int numberOfSeries, int[][] pairs, java.lang.String other) | ||
+ | |||
+ | Options for the getXYChart method's parameter'''''chartType''''' are: <strong>line/bar/linetime/lineqq/lineqqdd/area/areatime/step/nd/differencetime/symbolicaxis/polar</strong>. ''line'' is the default. | ||
− | Options for the getXYChart method are: <strong>horizontal/vertical, noline/nofill/noshape, year/month/day/minute</strong>. ''Vertical'' is the default. | + | Options for the getXYChart method's parameter'''''other''''' are: <strong>horizontal/vertical, noline/nofill/noshape, year/month/day/minute</strong>. ''Vertical'' is the default. |
-------------- | -------------- | ||
Line 212: | Line 233: | ||
} | } | ||
− | chart = chartMaker.getCategoryChart("Line", "Category Chart", "Release", "Class Count", dataTable, no_category, pairs,"nofill"); | + | chart = chartMaker.getCategoryChart("Line", |
+ | "Category Chart", "Release", "Class Count", dataTable, no_category, pairs, | ||
+ | "nofill"); | ||
chartPanel = new ChartPanel(chart, false); | chartPanel = new ChartPanel(chart, false); | ||
</pre> | </pre> | ||
− | |||
|- | |- | ||
| Line Chart using XYDataset || [[image:chart_Line.jpg|thumb|none|150px]] || [[image:chart_Line_data.jpg]] || <pre> | | Line Chart using XYDataset || [[image:chart_Line.jpg|thumb|none|150px]] || [[image:chart_Line_data.jpg]] || <pre> | ||
Line 226: | Line 248: | ||
pairs[i][1] = 2*i+1; //column y | pairs[i][1] = 2*i+1; //column y | ||
} | } | ||
− | chart = chartMaker.getXYChart("Line",chartTitle, "X", "Y", dataTable, no_series, pairs,""); | + | chart = chartMaker.getXYChart("Line", |
+ | chartTitle, "X", "Y", dataTable, no_series, pairs, | ||
+ | ""); | ||
chartPanel = new ChartPanel(chart, false); | chartPanel = new ChartPanel(chart, false); | ||
</pre> | </pre> | ||
Line 239: | Line 263: | ||
pairs[i][1] = 2*i+1; //column y | pairs[i][1] = 2*i+1; //column y | ||
} | } | ||
− | chart = chartMaker.getXYChart("Line","Line Chart", "X", "Y", dataTable, no_series, pairs,"noline"); | + | chart = chartMaker.getXYChart("Line", |
+ | "Line Chart", "X", "Y", dataTable, no_series, pairs, | ||
+ | "noline"); | ||
chartPanel = new ChartPanel(chart, false); | chartPanel = new ChartPanel(chart, false); | ||
</pre> | </pre> | ||
Line 252: | Line 278: | ||
pairs[i][1] = 2*i+1; //column y | pairs[i][1] = 2*i+1; //column y | ||
} | } | ||
− | chart = chartMaker.getXYChart("LineQQDD","QQD2D Chart", "Group1", "Group 2", dataTable, no_series, pairs,""); | + | chart = chartMaker.getXYChart("LineQQDD", |
+ | "QQD2D Chart", "Group1", "Group 2", dataTable, no_series, pairs, | ||
+ | ""); | ||
chartPanel = new ChartPanel(chart, false); | chartPanel = new ChartPanel(chart, false); | ||
</pre> | </pre> | ||
Line 265: | Line 293: | ||
pairs[i][1] = 0; //column y | pairs[i][1] = 0; //column y | ||
} | } | ||
− | chart = chartMaker.getXYChart("LineQQ","QQNormalPlot Chart", "Data", "NormalDistribution of Data", dataTable, no_series, pairs,""); | + | chart = chartMaker.getXYChart("LineQQ", |
+ | "QQNormalPlot Chart", "Data", "NormalDistribution of Data", dataTable, no_series, pairs, | ||
+ | ""); | ||
chartPanel = new ChartPanel(chart, false); | chartPanel = new ChartPanel(chart, false); | ||
</pre> | </pre> | ||
Line 274: | Line 304: | ||
pairs[0][0] = 0; //mean | pairs[0][0] = 0; //mean | ||
pairs[0][1] = 1; // stdDev | pairs[0][1] = 1; // stdDev | ||
− | chart = chartMaker.getXYChart("ND","Normaldistribution Chart", "X", "Y", dataTable, 1, pairs, "noshape nofill "); | + | chart = chartMaker.getXYChart("ND", |
+ | "Normaldistribution Chart", "X", "Y", dataTable, 1, pairs, | ||
+ | "noshape nofill "); | ||
chartPanel = new ChartPanel(chart, false); | chartPanel = new ChartPanel(chart, false); | ||
</pre> | </pre> | ||
Line 288: | Line 320: | ||
pairs[i][1] = 0; //column 0 stores series name | pairs[i][1] = 0; //column 0 stores series name | ||
} | } | ||
− | chart = chartMaker.getCategoryChart("LineStat", "LineChart", "Type", "value", dataTable, no_category, pairs,""); | + | chart = chartMaker.getCategoryChart("LineStat", |
+ | "LineChart", "Type", "value", dataTable, no_category, pairs, | ||
+ | ""); | ||
chartPanel = new ChartPanel(chart, false); | chartPanel = new ChartPanel(chart, false); | ||
</pre> | </pre> | ||
Line 302: | Line 336: | ||
pairs[i][1] = 0; //column 0 stores series name | pairs[i][1] = 0; //column 0 stores series name | ||
} | } | ||
− | chart = chartMaker.getCategoryChart("LineStatRaw", "LineChart", "Type", "value", dataTable, no_category, pairs,""); | + | chart = chartMaker.getCategoryChart("LineStatRaw", |
+ | "LineChart", "Type", "value", dataTable, no_category, pairs, | ||
+ | ""); | ||
chartPanel = new ChartPanel(chart, false); | chartPanel = new ChartPanel(chart, false); | ||
</pre> | </pre> | ||
Line 315: | Line 351: | ||
pairs[i][1] = 2*i+1; //column y | pairs[i][1] = 2*i+1; //column y | ||
} | } | ||
− | chart = chartMaker.getXYChart("Step","Step Chart", "X", "Y", dataTable, no_series, pairs,""); | + | chart = chartMaker.getXYChart("Step", |
+ | "Step Chart", "X", "Y", dataTable, no_series, pairs, | ||
+ | ""); | ||
chartPanel = new ChartPanel(chart, false); | chartPanel = new ChartPanel(chart, false); | ||
</pre> | </pre> | ||
Line 323: | Line 361: | ||
JFreeChart getXYChart(java.lang.String chartType, java.lang.String title, java.lang.String xLabel, java.lang.String yLabel, javax.swing.JTable table, int numberOfSeries, int[][] pairs, java.lang.String other) | JFreeChart getXYChart(java.lang.String chartType, java.lang.String title, java.lang.String xLabel, java.lang.String yLabel, javax.swing.JTable table, int numberOfSeries, int[][] pairs, java.lang.String other) | ||
− | + | ||
− | Options for the getXYChart method are: <strong>horizontal/vertical, noline/nofill/noshape, year/month/day/minute</strong>. ''Vertical'' is the default. | + | Options for the getXYChart method's parameter'''''chartType''''' are: <strong>line/bar/linetime/lineqq/lineqqdd/area/areatime/step/nd/differencetime/symbolicaxis/polar</strong>. ''line'' is the default. |
+ | |||
+ | Options for the getXYChart method's parameter'''''other''''' are: <strong>horizontal/vertical, noline/nofill/noshape, year/month/day/minute</strong>. ''Vertical'' is the default. | ||
JFreeChart getCategoryChart(java.lang.String chartType, java.lang.String title, java.lang.String xLabel, java.lang.String yLabel, javax.swing.JTable table, int numberOfCategory, int[][] pairs, java.lang.String other) | JFreeChart getCategoryChart(java.lang.String chartType, java.lang.String title, java.lang.String xLabel, java.lang.String yLabel, javax.swing.JTable table, int numberOfCategory, int[][] pairs, java.lang.String other) | ||
− | Options for the getCategoryChart method are: <strong>horizontal/vertical, 3D, stacked/layered/waterfall, year/month/day/minute</strong>. ''Vertical'' is the default. | + | Options for the getXYChart method's parameter'''''chartType''''' are: <strong>bar/barstat/barstatraw/line/linestat/linestatraw/step/area/areatime/eventfreq/spiderweb</strong>. ''bar'' is the default. |
+ | |||
+ | Options for the getCategoryChart method's parameter '''''other''''' are: <strong>horizontal/vertical, 3D, stacked/layered/waterfall, year/month/day/minute</strong>. ''Vertical'' is the default. | ||
-------------------- | -------------------- |
Revision as of 12:58, 21 June 2006
- Pie Chart
JFreeChart getPieChart(java.lang.String title, javax.swing.JTable table, int[][] pairs, java.lang.String other)
Options for the getPieChart method are: 2D/3D/ring, clockwise/counter_clockwise. 2D is the default.
- Bar Chart
Bar chart can be created using either getCategoryChart or getXYChart method depend on the data.
JFreeChart getCategoryChart(java.lang.String chartType, java.lang.String title, java.lang.String xLabel, java.lang.String yLabel, javax.swing.JTable table, int numberOfCategory, int[][] pairs, java.lang.String other)
Options for the getXYChart method's parameterchartType are: bar/barstat/barstatraw/line/linestat/linestatraw/step/area/areatime/eventfreq/spiderweb. bar is the default.
Options for the getCategoryChart method's parameterother are: horizontal/vertical, 3D, stacked/layered/waterfall, year/month/day/minute. Vertical is the default.
JFreeChart getXYChart(java.lang.String chartType, java.lang.String title, java.lang.String xLabel, java.lang.String yLabel, javax.swing.JTable table, int numberOfSeries, int[][] pairs, java.lang.String other)
Options for the getXYChart method's parameterchartType are: line/bar/linetime/lineqq/lineqqdd/area/areatime/step/nd/differencetime/symbolicaxis/polar. line is the default.
Options for the getXYChart method's parameterother are: horizontal/vertical, noline/nofill/noshape, year/month/day/minute. Vertical is the default.
- Line Chart
Line chart can be created using either getCategoryChart or getXYChart method depend on the data.
JFreeChart getXYChart(java.lang.String chartType, java.lang.String title, java.lang.String xLabel, java.lang.String yLabel, javax.swing.JTable table, int numberOfSeries, int[][] pairs, java.lang.String other)
Options for the getXYChart method's parameterchartType are: line/bar/linetime/lineqq/lineqqdd/area/areatime/step/nd/differencetime/symbolicaxis/polar. line is the default.
Options for the getXYChart method's parameterother are: horizontal/vertical, noline/nofill/noshape, year/month/day/minute. Vertical is the default.
JFreeChart getCategoryChart(java.lang.String chartType, java.lang.String title, java.lang.String xLabel, java.lang.String yLabel, javax.swing.JTable table, int numberOfCategory, int[][] pairs, java.lang.String other)
Options for the getXYChart method's parameterchartType are: bar/barstat/barstatraw/line/linestat/linestatraw/step/area/areatime/eventfreq/spiderweb. bar is the default.
Options for the getCategoryChart method's parameter other are: horizontal/vertical, 3D, stacked/layered/waterfall, year/month/day/minute. Vertical is the default.