Search found 478 matches

by John Matthews
Fri Jun 14, 2019 9:42 pm
Forum: JFreeChart
Topic: Access chart data with mouse click
Replies: 1
Views: 32

Re: Access chart data with mouse click

It looks like you're working from the examples examined here . Your listener can use the series index or item number to index your label array: if (e.getEntity() instanceof XYItemEntity) { XYItemEntity i = (XYItemEntity) e.getEntity(); System.out.println(i.getSeriesIndex() + ":" + i.getItem()); } Al...
by John Matthews
Thu Jun 13, 2019 6:14 pm
Forum: JFreeChart
Topic: Adding more symbols to SymbolAxis!
Replies: 1
Views: 15

Re: Adding more symbols to SymbolAxis!

I don't see way to update the list of symbols used by an existing SymbolAxis, but you can creates a new one and apply it to your plot; listeners should see a new PlotChangeEvent.
by John Matthews
Fri May 31, 2019 6:39 pm
Forum: JFreeChart
Topic: Series shape rendering doesn't respect SeriesRenderingOrder
Replies: 2
Views: 85

Re: Series shape rendering doesn't respect SeriesRenderingOrder

XYLineAndShapeRenderer renders lines and shapes in separate passes. You might look at other implementations of XYItemRenderer, such as StandardXYItemRenderer.
by John Matthews
Thu May 23, 2019 6:34 pm
Forum: JFreeChart
Topic: How to plot log scale?
Replies: 1
Views: 177

Re: How to plot log scale?

It looks like the LogarithmicAxis implementation of refreshTicksHorizontal and refreshTicksVertical creates new instances of NumberTick that default to TickType.MAJOR . Because no tick is TickType.MINOR , setMinorTickMarksVisible(false) has no apparent effect. Your implementation would have to speci...
by John Matthews
Tue May 14, 2019 10:11 am
Forum: JFreeChart
Topic: Can you tell me how I can do this?
Replies: 2
Views: 472

Re: Can you tell me how I can do this?

You can use a custom DrawingSupplier, like this.
by John Matthews
Tue May 14, 2019 4:00 am
Forum: JFreeChart
Topic: A different dataset
Replies: 1
Views: 117

Re: A different dataset

Several examples are examined here.
by John Matthews
Fri Apr 26, 2019 3:29 am
Forum: JFreeChart
Topic: extending JFreeChart
Replies: 0
Views: 633

Re: extending JFreeChart

To learn what ChartEntity was clicked, add a ChartMouseListener to your ChartPanel, for example; dragging a point is examined here.
by John Matthews
Thu Apr 11, 2019 5:11 pm
Forum: JFreeChart
Topic: Graph Time and Point label distorted
Replies: 8
Views: 1653

Re: Graph Time and Point label distorted

FourW Support wrote:Currently we are using DefaultCategoryDataset.
For crowded bar charts, I use SlidingCategoryDataset. Alternatively, consider switching to XYDataset and use SymbolAxis.
by John Matthews
Wed Apr 03, 2019 5:12 pm
Forum: JFreeChart
Topic: Shapes on Area Chart
Replies: 5
Views: 637

Re: Shapes on Area Chart

The API suggests that you override getItemShape().
by John Matthews
Tue Apr 02, 2019 1:43 am
Forum: JFreeChart
Topic: Shapes on Area Chart
Replies: 5
Views: 637

Re: Shapes on Area Chart

[[/list]
by John Matthews
Sun Mar 31, 2019 9:07 am
Forum: JFreeChart
Topic: Shapes on Area Chart
Replies: 5
Views: 637

Re: Shapes on Area Chart

  1. Looking the annotations, e.g. XYShapeAnnotation or XYPointerAnnotation.
  2. Use the zoom and pan features mentioned here as needed.
by John Matthews
Tue Mar 19, 2019 5:19 pm
Forum: JFreeChart
Topic: Graph Time and Point label distorted
Replies: 8
Views: 1653

Re: Graph Time and Point label distorted

Can you use SlidingCategoryDataset, or similar?