Search found 482 matches

by John Matthews
Tue Aug 20, 2019 3:55 am
Forum: JFreeChart
Topic: Show majorAxis at the end of NumberAxis
Replies: 4
Views: 2218

Re: Show majorAxis at the end of NumberAxis

Also look at DatasetUtils methods that iterate over the items in an XYDataset to find the bounds.
by John Matthews
Fri Jul 12, 2019 4:38 am
Forum: JFreeChart
Topic: too many x axis values
Replies: 1
Views: 1435

Re: too many x axis values

Given a CategoryAxis, try setTickLabelsVisible or setCategoryLabelPositions with the desired position; alternatively, consider a SlidingCategoryDataset.
by John Matthews
Fri Jun 14, 2019 9:42 pm
Forum: JFreeChart
Topic: Access chart data with mouse click
Replies: 1
Views: 1297

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: 1182

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: 1392

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: 1401

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: 1812

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: 1274

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: 3894

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: 3802

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: 2182

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: 2182

Re: Shapes on Area Chart

[[/list]