Search found 7 matches

by Gotcha
Wed Jan 28, 2009 1:03 pm
Forum: JFreeChart
Topic: JFreeChart bug: title annotation + inverted axis
Replies: 0
Views: 2398

JFreeChart bug: title annotation + inverted axis

Hi, I've found that a legend made as annotation is shown incorrectly when an axis is inverted. Can be shown in the XYTitleAnnotationDemo1.java. Just insert inversion setting. JFreeChart 1.0.12. DateAxis axis = (DateAxis) plot.getDomainAxis(); axis.setDateFormatOverride(new SimpleDateFormat("MMM-yyyy...
by Gotcha
Wed Jan 28, 2009 10:11 am
Forum: JFreeChart
Topic: XY charts - dynamic data, drawing updated area only
Replies: 6
Views: 15366

I've forgotten to mention that the updated rectangle is always within plot area (inside axis) with full height now.
by Gotcha
Wed Jan 28, 2009 10:02 am
Forum: JFreeChart
Topic: XY charts - dynamic data, drawing updated area only
Replies: 6
Views: 15366

XY charts - dynamic data, drawing updated area only

Hi, because we need to show dynamic data faster in graphs we decided to update JFreeChart sources. The reason why I post this here is that somebody can have the same problem with slow drawing of huge dynamic data. The idea is very simple. Fire an event with desired information (changed dataset, upda...
by Gotcha
Thu Jan 22, 2009 3:30 pm
Forum: JFreeChart
Topic: Customize legend items on click i.e. for highlighting
Replies: 1
Views: 4019

You must implement ChartMouseListener. Setup LegendItemEntity in chartMouseMoved like this ... public void chartMouseMoved(ChartMouseEvent event) { // Hovering over the title legend? LegendItemEntity legendItemEntity = null; if (event.getEntity() instanceof LegendItemEntity) { legendItemEntity = (Le...
by Gotcha
Fri Dec 12, 2008 8:09 am
Forum: JFreeChart
Topic: Annotation per series?
Replies: 1
Views: 3168

OK, what I really need is some type of marker but markers have no draw function so it is not possible to make custom marker. I do not understand very well why there is no marker type like annotation lines, texts, custom markers, etc. Could someone, please, help me?
by Gotcha
Thu Dec 11, 2008 3:16 pm
Forum: JFreeChart
Topic: Annotation per series?
Replies: 1
Views: 3168

Annotation per series?

Hi,

I need annotations to be linked with series so I can show annotations for active series only. Code in the plot adds annotations for whole dataset. Can I link annotations with series using existing code in free chart or do I have to write it yourself?
by Gotcha
Wed Oct 15, 2008 9:26 am
Forum: JFreeChart
Topic: Selected XY series legend item font
Replies: 1
Views: 3092

Selected XY series legend item font

Hi, I need to highlight selected series in XY line chart legend using bold font (highlighting lines using thicker ones works correctly). I've implemented ChartMouseListener so I can get LegendItemEntity and then LegendItem (from chart). I've tried to use method setLabelFont but the legend font is no...