Difference between revisions of "List of charts"
Line 3: | Line 3: | ||
! !! Chart !! Chart data in JTable !! Sample code | ! !! Chart !! Chart data in JTable !! Sample code | ||
|- | |- | ||
− | | PieChart2D || [[image:pie2d.jpg|thumb|none|150px]] || [[image:pie2d_data.jpg]] || | + | | PieChart2D || [[image:pie2d.jpg|thumb|none|150px]] || [[image:pie2d_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,""); | ||
+ | chartPanel = new ChartPanel(chart, false); </pre> | ||
|- | |- | ||
|} | |} |
Revision as of 16:50, 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); |