Search found 513 matches

by John Matthews
Wed Oct 10, 2012 9:53 pm
Forum: JFreeChart
Topic: Realtime Dynamic Crosshair (trace) and tooltip (patch code)
Replies: 15
Views: 34053

Re: Realtime Dynamic Crosshair (trace) and tooltip (patch co

org.jfree.chart.demo.TimeSeriesChartDemo1, included in the distribution, is a good starting point. Two related approaches are examined in this Q&A. Depending on the circumstances, either TimeSeriesCollection or DynamicTimeSeriesCollection may be worth a look.
by John Matthews
Fri Oct 05, 2012 10:21 pm
Forum: JFreeChart
Topic: How do I retrieve the XYPlot dimension dynamically?
Replies: 3
Views: 3645

Re: How do I retrieve the XYPlot dimension dynamically?

I'm not sure it entirely apropos, but you might look at SlidingXYDataset: "A Dataset implementation that presents a window (subset) of the items in an underlying dataset."
by John Matthews
Wed Oct 03, 2012 4:59 pm
Forum: JFreeChart
Topic: Plot different background color
Replies: 2
Views: 3617

Re: Plot different background color

I've never tried it with the bubble renderer, but two general approaches to custom coloring are shown here.

Edit: Oops, sorry, I completely misread the question.
by John Matthews
Tue Sep 25, 2012 3:13 pm
Forum: JFreeChart
Topic: Tooltips are not working with the jfreechart 1.0.14.jar
Replies: 2
Views: 2699

Re: Tooltips are not working with the jfreechart 1.0.14.jar

Interestingly, it works in the factory used by PieChartDemo1. Can you post an sscce?
by John Matthews
Fri Sep 21, 2012 9:52 pm
Forum: JFreeChart
Topic: How to identify elements in a Scatter Plot
Replies: 8
Views: 6782

Re: How to identify elements in a Scatter Plot

David,

Thank you for a great library! As you know, I'm a longtime fan, but there are still so many corners that I have yet to explore. Don't hesitate to contact me if you see anything that needs attention.

Cordially,

John
by John Matthews
Fri Sep 21, 2012 2:30 pm
Forum: JFreeChart
Topic: Prevent narrow bars on large domain xybarchart
Replies: 2
Views: 2683

Re: Prevent narrow bars on large domain xybarchart

With five orders of magnitude, maybe a LogAxis would be useful. This example is for a range axis, but the idea is the same.
by John Matthews
Tue Sep 18, 2012 6:38 pm
Forum: JFreeChart
Topic: Fixing the axes of a graph
Replies: 4
Views: 4559

Re: Fixing the axis of a graph

You can click and drag toward the range axis to reset the zoom state. This example shows one way to use a button for the same purpose.
by John Matthews
Fri Sep 14, 2012 9:42 pm
Forum: JFreeChart
Topic: How to make the edges of a graph of type Stacked Bar?
Replies: 5
Views: 5834

Re: How to make the edges of a graph of type Stacked Bar?

Given a suggestion to override getItemOutlinePaint() and getItemOutlineStroke()
That draws the outline around the entire item.
D'oh! Thanks for clarifying, remiohead, and for pointing to the BarPainter.
by John Matthews
Fri Sep 14, 2012 9:35 pm
Forum: JFreeChart
Topic: XY chart using the data in .csv file
Replies: 8
Views: 17049

Re: XY chart using the data in .csv file

You may want to factor out a separate method and use readLine() in a more idiomatic way. Note also that the returned XYSeries knows its own min/max. private static XYSeries readSeries(String name) throws IOException { BufferedReader br = new BufferedReader(new FileReader(name)); String line; XYSerie...
by John Matthews
Thu Sep 13, 2012 6:20 pm
Forum: JFreeChart
Topic: How to make the edges of a graph of type Stacked Bar?
Replies: 5
Views: 5834

Re: How to make the edges of a graph of type Stacked Bar?

Cross-posted here. There's a suggestion to override getItemOutlinePaint() and getItemOutlineStroke(), as suggested in the StackedBarRenderer API, but I haven't tried it.