Difference between revisions of "List of charts"
Line 12: | Line 12: | ||
chartPanel = new ChartPanel(chart, false); </pre> | chartPanel = new ChartPanel(chart, false); </pre> | ||
|- | |- | ||
+ | | PieChart3D || [[image:pie3d.jpg|thumb|none|150px]] || [[image:pie3d_data.jpg]] || <pre> | ||
+ | ChartGenerator_JTable chartMaker = new ChartGenerator_JTable(); | ||
+ | int[][] pairs = new int[1][2]; | ||
+ | pairs[0][0] = 1; // value | ||
+ | pairs[0][1] = 0; // name | ||
+ | |||
+ | chart = chartMaker.getPieChart(chartTitle, dataTable, pairs,"3D counter_clockwise"); | ||
+ | chartPanel = new ChartPanel(chart, false); </pre> | ||
+ | |- | ||
+ | | RingChart || [[image:ring.jpg|thumb|none|150px]] || [[image:ring_data.jpg]] || <pre> | ||
+ | ChartGenerator_JTable chartMaker = new ChartGenerator_JTable(); | ||
+ | int[][] pairs = new int[1][2]; | ||
+ | pairs[0][0] = 1; // value | ||
+ | pairs[0][1] = 0; // name | ||
+ | |||
+ | chart = chartMaker.getPieChart(chartTitle, dataTable, pairs,"ring"); | ||
+ | chartPanel = new ChartPanel(chart, false); </pre> | ||
+ | |- | ||
+ | |||
|} | |} |
Revision as of 17:05, 19 June 2006
Chart | Chart data in JTable | Sample code | |
---|---|---|---|
PieChart2D | File:Pie2d data.jpg | ChartGenerator_JTable chartMaker = new ChartGenerator_JTable(); int[][] pairs = new int[1][2]; pairs[0][0] = 1; // value pairs[0][1] = 0; // name chart = chartMaker.getPieChart(chartTitle, dataTable, pairs,""); chartPanel = new ChartPanel(chart, false); | |
PieChart3D | File:Pie3d data.jpg | ChartGenerator_JTable chartMaker = new ChartGenerator_JTable(); int[][] pairs = new int[1][2]; pairs[0][0] = 1; // value pairs[0][1] = 0; // name chart = chartMaker.getPieChart(chartTitle, dataTable, pairs,"3D counter_clockwise"); chartPanel = new ChartPanel(chart, false); | |
RingChart | File:Ring data.jpg | ChartGenerator_JTable chartMaker = new ChartGenerator_JTable(); int[][] pairs = new int[1][2]; pairs[0][0] = 1; // value pairs[0][1] = 0; // name chart = chartMaker.getPieChart(chartTitle, dataTable, pairs,"ring"); chartPanel = new ChartPanel(chart, false); |