Search found 11 matches

by conwaypm
Sun Jan 05, 2014 2:55 pm
Forum: JFreeChart
Topic: Multiple LegendTitles or Mutliple LegendSource?
Replies: 3
Views: 5282

Re: Multiple LegendTitles or Mutliple LegendSource?

Thanks to you both. I will have a look at both solutions and see which is the most appropriate for my case but both look like they will do the job.
by conwaypm
Fri Jan 03, 2014 2:28 pm
Forum: JFreeChart
Topic: Multiple LegendTitles or Mutliple LegendSource?
Replies: 3
Views: 5282

Multiple LegendTitles or Mutliple LegendSource?

Hi. I am attempting to produce a pie chart with support for negative values (I know this doesn't make sense but there we go..). The pie itself does not need to have a segment for the series with a negative value though it does need a legend item. I have tried two different methods of getting this to...
by conwaypm
Mon Sep 16, 2013 1:35 pm
Forum: JFreeChart
Topic: gaps in StackedXYAreaRenderer2 graph
Replies: 8
Views: 18312

Re: gaps in StackedXYAreaRenderer2 graph

Hi. I am using the StackedXYAreaRenderer2 with the round flag set as true. I am however still getting thin white vertical lines in PNG output of the chart. I am using a DateAxis for the domain axis and a NumberAxis for the range axis. Does anyone know why I might still be getting these vertical line...
by conwaypm
Thu Jun 14, 2012 1:18 pm
Forum: JFreeChart
Topic: Pie section outlines overlapping
Replies: 3
Views: 5335

Re: Pie section outlines overlapping

Hi Martin. Here is a picture. You see the really really thin wedge at the 12 o'clock position? The white borders overlap more and more the closer they get to the center. I think the problem would be alleviated slightly by having these outlines get thinner as they get to the center of the pie. Hope t...
by conwaypm
Thu Jun 14, 2012 11:09 am
Forum: JFreeChart
Topic: Pie section outlines overlapping
Replies: 3
Views: 5335

Pie section outlines overlapping

Hi. We currently have a problem of pie section outlines overlapping for particularly narrow slices. The overlapping tends to become worse the closer to the center of the pie as the edges converge. One possible way I thought of lessening this effect is having the outlines taper as they get closer to ...
by conwaypm
Wed May 02, 2012 1:49 pm
Forum: JFreeChart
Topic: IntervalMarker label text overlapping plot points
Replies: 4
Views: 7496

Re: IntervalMarker label text overlapping plot points

Thanks for your help Martin. I was able to override the drawItem method to retrieve coordinates of the largest bar. I also used a FontMetrics object to calculate the size of the block of text in the label and was able to compare these two Rectangle objects for intersection and if this was the case, ...
by conwaypm
Tue Apr 24, 2012 10:28 am
Forum: JFreeChart
Topic: IntervalMarker label text overlapping plot points
Replies: 4
Views: 7496

Re: IntervalMarker label text overlapping plot points

Still looking at this and I think the best solution is to do a n-pass routine whereby we draw the chart, then measure the dimensions of the label and things it might overlap with and if they do, adjust the upper margin, re-draw and check again until we find that we have no more overlapping. One ques...
by conwaypm
Tue Apr 10, 2012 3:37 pm
Forum: JFreeChart
Topic: How to change dataset values?
Replies: 2
Views: 6126

Re: How to change dataset values?

Could you expand a little on what you mean? You could quite easily change the values specified in the 'createDataset' method. Do you mean changing the values after the chart has been created?
by conwaypm
Tue Apr 10, 2012 2:12 pm
Forum: JFreeChart
Topic: IntervalMarker label text overlapping plot points
Replies: 4
Views: 7496

IntervalMarker label text overlapping plot points

Hello. I am trying to figure out how I can prevent a Marker label from overlapping the bars (and their labels) on a bar chart. The problem occurs when the label text is long and split onto several lines until eventually it ends up overlapping with a bar. I have a couple of questions : Am I overlooki...
by conwaypm
Thu Feb 16, 2012 11:50 am
Forum: JFreeChart
Topic: Grouping segments of a pie chart
Replies: 0
Views: 2942

Grouping segments of a pie chart

Hello. I was wondering if JFreeChart (specifically 1.0.12) offers a way to easily group together a number of adjacent segments on a pie chart, such that they have their own legend and the label on the chart refers to the group (not the individual segments)? I am currently trying to do this and I fig...
by conwaypm
Wed Dec 21, 2011 3:05 pm
Forum: JFreeChart
Topic: DateAxis tick labels for regular intervals
Replies: 8
Views: 16218

DateAxis tick labels for regular intervals

Hello! I have a TimeSeriesChart with a DateAxis as the domain axis. I am trying to get the axis to display tick labels for constant intervals of time. The input data (as an XYDataset) consists of numbers for each month for 5 years. Ie: 01/01/2001 5 01/02/2001 8 01/03/2001 21 ...... 01/01/2002 6 01/0...