Search found 4 matches
- Fri Oct 22, 2010 7:56 pm
- Forum: JFreeChart
- Topic: Subtitles and Legend on a Bar Chart
- Replies: 0
- Views: 4703
Subtitles and Legend on a Bar Chart
I have a bar chart and would like a legend and a couple subtitles. If you run this code, you'll get a NPE on the line that reads: LegendTitle legendTitle2 = chart.getLegend(); JFreeChart chart = ChartFactory.createBarChart( "Chart Title", "X Title", "Range Title", dataset, PlotOrientation.VERTICAL, ...
- Mon Oct 18, 2010 8:59 pm
- Forum: JFreeChart
- Topic: Custom Colors on a MultiplePieChart?
- Replies: 4
- Views: 5060
Re: Custom Colors on a MultiplePieChart?
Nevermind, paradoxoff, I got it while writing some sample code for you. It turned out to be an old version of JFreeChart. Thanks for your assistance. Here's the sample code for anyone interested in doing custom colors in a multiple pie chart: package test; import java.awt.Color; import java.awt.Font...
- Mon Oct 18, 2010 1:58 pm
- Forum: JFreeChart
- Topic: Custom Colors on a MultiplePieChart?
- Replies: 4
- Views: 5060
Re: Custom Colors on a MultiplePieChart?
Thanks for the reply. My initial call to createMultiplePieChart() is as follows: final JFreeChart chart = ChartFactory.createMultiplePieChart( this.getChartTitle(), // chart title dataset, // dataset TableOrder.BY_ROW, this.isCreateLegend(), // include legend tooltips, urls ); You'll see that I'm se...
- Fri Oct 15, 2010 5:26 pm
- Forum: JFreeChart
- Topic: Custom Colors on a MultiplePieChart?
- Replies: 4
- Views: 5060
Custom Colors on a MultiplePieChart?
I'm having difficulty using custom colors on a MultiplePieChart. From my main class: final MultiplePiePlot plot = (MultiplePiePlot) chart.getPlot(); final JFreeChart subchart = plot.getPieChart(); final PiePlot p = (PiePlot) subchart.getPlot(); PieRenderer renderer = new PieRenderer(Colors.getColors...