Search found 11154 matches

by david.gilbert
Sun Jun 17, 2018 5:02 pm
Forum: JFreeChart
Topic: JFreeChart's ChartViewer is not filling the entire tab space
Replies: 1
Views: 10

Re: JFreeChart's ChartViewer is not filling the entire tab space

I think all you need to add is: chartViewer.setPrefHeight(300); ...because the preferred width and height of the ChartViewer are defaulting to 0. You could also consider removing the VBox and second anchor pane, and add the ChartViewer directly to the first AnchorPane: tab.setContent(anchorPane); //...
by david.gilbert
Sat Jun 09, 2018 12:01 pm
Forum: JFreeChart
Topic: hi guy,i have a question,please help me!
Replies: 1
Views: 33

Re: hi guy,i have a question,please help me!

I would take a look at SimpleHistogramDataset, it is a different dataset implementation that allows for updates.
by david.gilbert
Fri Jun 08, 2018 3:35 pm
Forum: JFreeChart
Topic: XYDataSeries does not update
Replies: 2
Views: 59

Re: XYDataSeries does not update

At some point (I think version 1.0.14) I changed the getDataItem() method to return a clone of the object to make it harder for the XYSeries to have its data values changed without triggering a SeriesChangeEvent.
by david.gilbert
Thu Jun 07, 2018 6:41 pm
Forum: JCommon
Topic: J free Chart
Replies: 1
Views: 979

Re: J free Chart

What is the exact error, because that message doesn't make a lot of sense. In any case, I would recommend updating to JFreeChart 1.0.19 or 1.5.0.
by david.gilbert
Thu Jun 07, 2018 6:39 pm
Forum: JCommon
Topic: hi guy,i have a question,please help me!
Replies: 1
Views: 981

Re: hi guy,i have a question,please help me!

Better is to make the jump to JFreeChart 1.5.0, then you don't need JCommon at all. But if you must use JFreeChart 1.0.x, then you'll see the JCommon dependency in the pom.xml <dependency> <groupId>org.jfree</groupId> <artifactId>jcommon</artifactId> <version>1.0.24</version> </dependency>
by david.gilbert
Mon Jun 04, 2018 7:33 pm
Forum: JFreeChart
Topic: I am a new member and I need help from everyone.
Replies: 1
Views: 53

Re: I am a new member and I need help from everyone.

It's possible there was a bug somewhere along the way. The latest version is working, you should try to upgrade to the latest version of JFreeChart or compare the XYSeries and DatasetUtilities classes between the two versions to see what has changed.
by david.gilbert
Fri Jun 01, 2018 4:54 am
Forum: JFreeChart
Topic: JFreeChart forum link broken
Replies: 1
Views: 100

Re: JFreeChart forum link broken

Fixed now, thanks for letting me know.
by david.gilbert
Fri Jun 01, 2018 4:40 am
Forum: JFreeChart
Topic: hi guy,i have a question,please help me!
Replies: 1
Views: 52

Re: hi guy,i have a question,please help me!

The item labels feature doesn't include any automatic way to avoid labels overlapping - sometimes there just isn't enough space. I would suggest that if you need to display data values for every single point in your chart, then perhaps you should just present the data in a table, maybe with a chart ...
by david.gilbert
Fri Jun 01, 2018 4:36 am
Forum: JFreeChart
Topic: JFreeChart for JavaFX - Moving Average takes VERY long time
Replies: 5
Views: 148

Re: JFreeChart for JavaFX - Moving Average takes VERY long time

How is the source series defined? I think there might be a mismatch between the RegularTimePeriod instance used internally by the TimeSeries and the periodCount argument you are using in the call to the method creating the moving average, but it is hard to tell.
by david.gilbert
Mon Apr 16, 2018 8:06 pm
Forum: JFreeChart
Topic: Custom colors for scatter plots
Replies: 2
Views: 148

Re: Custom colors for scatter plots

This renderer uses a single color in order to maximise performance - once you start changing the color for each data item, you'll have to bear the cost of that state change.
by david.gilbert
Sun Apr 01, 2018 8:00 am
Forum: JFreeChart
Topic: Save as SVG by right click on chartpanel
Replies: 2
Views: 313

Re: Save as SVG by right click on chartpanel

You need to ensure that the jfreesvg.jar file is on the class path. As long as that is the case, JFreeChart should automatically detect it and provide the option to export charts to SVG format.
by david.gilbert
Thu Feb 22, 2018 7:16 am
Forum: JFreeChart
Topic: Customizing Popup menu for PolarChartPanel
Replies: 2
Views: 408

Re: Customizing Popup menu for PolarChartPanel

For the PDF and SVG export options, there is some code in ChartPanel that is auto-detecting if OrsonPDF and JFreeSVG are on the class path, and adding the menu items only if they are there. It looks like the PolarChartPanel class skips this code entirely, so there is some work to do to add these. I'...
by david.gilbert
Thu Feb 22, 2018 6:24 am
Forum: JFreeChart
Topic: Line Annotation does not draw
Replies: 1
Views: 414

Re: Line Annotation does not draw

The coordinates that you pass to the XYLineAnnotation constructor need to be specified in data space (that is, values relative to the chart's axes) not in screen space.
by david.gilbert
Sat Feb 10, 2018 2:07 pm
Forum: JFreeChart
Topic: Chart Appears as red colour in android mobile acrobat Reader
Replies: 1
Views: 455

Re: Chart Appears as red colour in android mobile acrobat Re

I would guess that this is a bug in the PDF viewer application, not something related to JFreeChart.
by david.gilbert
Fri Feb 09, 2018 7:34 am
Forum: JFreeChart
Topic: Crosshairs and multiple range axes
Replies: 4
Views: 807

Re: Crosshairs and multiple range axes

Interesting, I will take a closer look at this.