Pie Charts
|
Chart |
Chart data in JTable |
Sample code
|
PieChart2D |
Error creating thumbnail: File missing |
|
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 |
Error creating thumbnail: File missing |
|
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 |
Error creating thumbnail: File missing |
|
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);
|
All options for the chartMaker's getPieChart method: 2D 3D ring clockwise counter_clockwise. 2D is default.