Search found 513 matches

by John Matthews
Sat Sep 19, 2020 1:42 pm
Forum: JFreeChart
Topic: Excel Export
Replies: 1
Views: 4895

Re: Excel Export

No, ChartUtils (formerly named ChartUtilities) includes methods to save a chart to a File, as well as a stream.
by John Matthews
Thu Sep 17, 2020 11:55 pm
Forum: JFreeChart
Topic: Combining JDBCXYDatasets in one graph
Replies: 1
Views: 3979

Re: Combining JDBCXYDatasets in one graph

JDBCXYDataset can hold multiple series by including additional columns in the query.
by John Matthews
Mon Sep 07, 2020 11:45 pm
Forum: JFreeChart
Topic: Data visualization
Replies: 1
Views: 3244

Re: Data visualization

I often start with the demo programs, and then I look among the examples cited here and seen here.
by John Matthews
Mon Jul 27, 2020 7:42 pm
Forum: JFreeChart
Topic: Returning the data displayed in the line chart current view
Replies: 1
Views: 3895

Re: Returning the data displayed in the line chart current view

Examine the chart's XYPlot to learn the current range of the desired axis: Range domain = chart.getXYPlot().getDomainAxis().getRange(); Range range = chart.getXYPlot().getRangeAxis().getRange(); Use the range values to iterate over the dataset. DatasetUtils illustrates typical iteration schemes.
by John Matthews
Sat Apr 04, 2020 8:23 pm
Forum: JFreeChart
Topic: Time Series Chart - Date Axis Question
Replies: 7
Views: 30616

Re: Time Series Chart - Date Axis Question

Another alternative: add a suitable pattern to your SimpleDateFormat, perhaps D or E.
by John Matthews
Fri Apr 03, 2020 12:53 am
Forum: JFreeChart
Topic: Efficient way to update live graphs
Replies: 3
Views: 5070

Re: Efficient way to update live graphs

The List<V> passed to process() affords you the opportunity to cache an arbitrary number of values of type V for a bulk update. Extending a suitable subclass of AbstractDataset will allow you to control when to notify listeners.
by John Matthews
Thu Apr 02, 2020 5:42 pm
Forum: JFreeChart
Topic: Efficient way to update live graphs
Replies: 3
Views: 5070

Re: Efficient way to update live graphs

Update the chart's dataset in your implementation of SwingWorker::process , illustrated here . From the SwingWorker::publish API, "multiple invocations to the publish() method might occur before the process() method is executed. For performance purposes all these invocations are coalesced into one i...
by John Matthews
Wed Mar 18, 2020 12:15 am
Forum: JFreeChart
Topic: Time Series Chart - Date Axis Question
Replies: 7
Views: 30616

Re: Time Series Chart - Date Axis Question

One alternative: add a second domain axis with a different date format.
by John Matthews
Tue Nov 19, 2019 4:51 pm
Forum: JFreeChart
Topic: shift point
Replies: 1
Views: 4119

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

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

Re: Chart Dimensions

In Swing, use a ChartPanel, a subclass of JPanel. Several size control approaches are examined here.