Search found 486 matches

by John Matthews
Tue Nov 19, 2019 4:51 pm
Forum: JFreeChart
Topic: shift point
Replies: 1
Views: 334

Re: shift point

You might try the example examined here. As version 1.0.13 dates to 2009, consider migrating to a more recent version.
by John Matthews
Mon Nov 18, 2019 11:35 am
Forum: JFreeChart
Topic: How to Apply Pattern to Bar Chart
Replies: 1
Views: 210

Re: How to Apply Pattern to Bar Chart

As suggested here, you might look at returning a TexturePaint from your DrawingSupplier.
by John Matthews
Sun Nov 17, 2019 5:51 pm
Forum: JFreeChart
Topic: Chart Dimensions
Replies: 1
Views: 252

Re: Chart Dimensions

In Swing, use a ChartPanel, a subclass of JPanel. Several size control approaches are examined here.
by John Matthews
Wed Oct 30, 2019 10:44 pm
Forum: JFreeChart
Topic: JFreeChart EDT Issues?
Replies: 2
Views: 1106

Re: JFreeChart EDT Issues?

ThreadCheckingRepaintManager can be very helpful, but it may not be dispositive. Other problems may exist. It's hard to say without a complete example and relevant version details. This example may provide a useful reference point from which to start trying to reproduce the effect you're seeing.
by John Matthews
Tue Aug 20, 2019 3:55 am
Forum: JFreeChart
Topic: Show majorAxis at the end of NumberAxis
Replies: 4
Views: 3113

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

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

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

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

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

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

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

Re: A different dataset

Several examples are examined here.