Search found 12 matches

by Reggie3
Thu Apr 24, 2008 10:15 pm
Forum: JFreeChart
Topic: Invisible Subplots in Combined Category Chart
Replies: 3
Views: 4546

More Information

Just in case it helps anybody figure out what the problem is, the output from calling plot.getSubplots() on my combined category plot is: Subplots : [org.jfree.chart.plot.CategoryPlot@898540, org.jfree.chart.plot.CategoryPlot@8b677f, org.jfree.chart.plot.CategoryPlot@37d490, org.jfree.chart.plot.Cat...
by Reggie3
Mon Apr 21, 2008 9:22 pm
Forum: JFreeChart
Topic: Invisible Subplots in Combined Category Chart
Replies: 3
Views: 4546

Invisible Subplots in Combined Category Chart

I have created a CombinedDomainCategoryPlot that is made up of several subplots that are pulled from several 3D bar charts using the following loop: for(int i=0; i<alCharts.size(); i++){ subPlot = (CategoryPlot)alCharts.get(i).getPlot(); BarRenderer bRenderer = (BarRenderer)subPlot.getRenderer(); bR...
by Reggie3
Thu Apr 03, 2008 6:17 pm
Forum: JFreeChart
Topic: Creating Multiple SVG Images For PDF
Replies: 3
Views: 5215

Figured It Out

paradoxoff, I was able to figure out my problem ... maybe not figure it out totally, but at least it no longer happens. It was related to one of my charts only having 1 item in it's legend while the others had 3. This was because that particular chart only had one bar on it. This also caused my char...
by Reggie3
Thu Apr 03, 2008 6:05 pm
Forum: JFreeChart
Topic: problem generating PDF with iText - I get all Fonts bold...?
Replies: 6
Views: 9321

Page Size

Elly, Like mickish said it might be your page size. It looks like you're setting your pagesize to be the same as the size of your image. Change this line from your code Document document = new Document(pagesize, 50, 50, 50, 50); to Document document = new Document (PageSize.LETTER.rotate(), 50, 50, ...
by Reggie3
Thu Apr 03, 2008 2:06 pm
Forum: JFreeChart
Topic: CombinedDomainCategoryPlot Alignment of Subplots
Replies: 2
Views: 3358

Thanks

That works perfectly, thanks.
by Reggie3
Wed Apr 02, 2008 9:12 pm
Forum: JFreeChart
Topic: CombinedDomainCategoryPlot Alignment of Subplots
Replies: 2
Views: 3358

CombinedDomainCategoryPlot Alignment of Subplots

I have a CombinedDomainCategoryPlot made up of several supblots. Each subplot may have up to 15 bars in it (3 series in 5 categories). However one subplot only has 1 bar in the 3rd series of the 5th category. In my case this causes the single bar to be drawn in the middle of the chart in which case ...
by Reggie3
Wed Apr 02, 2008 2:53 am
Forum: JFreeChart
Topic: Creating Multiple SVG Images For PDF
Replies: 3
Views: 5215

Some More Info

After working on this problem a bit more, I was able to determine the following:

1. If I turn off legends on my individual charts at the time they are created then the problem goes away.
2. The chart that causes the problem only has one item on it's legend while the rest have at least 3.
by Reggie3
Tue Apr 01, 2008 3:02 pm
Forum: JFreeChart
Topic: Creating Multiple SVG Images For PDF
Replies: 3
Views: 5215

Creating Multiple SVG Images For PDF

I am trying to export several charts to SVG files so that I can add them to individual pages in a PDF. I use to following code to create the temporary SVG image file that I later import into the PDF. public static void ExportChartToSVG(String strFullFileName, JFreeChart chart) throws UnsupportedEnco...
by Reggie3
Sat Mar 29, 2008 3:52 am
Forum: JFreeChart
Topic: Get a SubPlot from Combined Chart
Replies: 1
Views: 2073

Get a SubPlot from Combined Chart

Is there anyway to retrieve individual subplots from a combined chart?
by Reggie3
Wed Mar 26, 2008 2:35 am
Forum: JFreeChart
Topic: Altering Legend in CombinedDomainCategoryPlot
Replies: 2
Views: 3235

Thanks

I went for the easy way, and it works, thanks. Here is a copy of the code I used: private static LegendItemCollection createLegendItems() { LegendItemCollection legenditemcollection = new LegendItemCollection(); LegendItem legenditem = new LegendItem("Trial 1", "-", null, null, Plot.DEFAULT_LEGEND_I...
by Reggie3
Tue Mar 25, 2008 8:02 pm
Forum: JFreeChart
Topic: Altering Legend in CombinedDomainCategoryPlot
Replies: 2
Views: 3235

Altering Legend in CombinedDomainCategoryPlot

How do you alter the legend in a CombinedDomainCategoryPlot? I have several barcharts (the number is determined at runtime) that have the same domain items, and the legend wants to show a key for each domain item on each chart. In the end the legend shows 15 keys for 3 charts when 5 keys is all I ne...
by Reggie3
Mon Mar 10, 2008 5:43 pm
Forum: JFreeChart
Topic: Change Chart Title During Runtime
Replies: 0
Views: 1883

Change Chart Title During Runtime

I need to change the title of my chart at runtime based on data from the dataset. I'm able to successfully change the dataset, and the bars on my chart reflect that, however the title stays the same. How do I get the entire chart to redraw / repaint (or am I looking at the problem wrong)? Here is my...