Search found 31 matches

by jahjeremy
Wed Mar 14, 2018 7:31 pm
Forum: JFreeChart
Topic: Using the same chart in multiple JPanels
Replies: 0
Views: 3741

Using the same chart in multiple JPanels

Hello, I am attempting to use the same chart object in multiple JPanels, but it doesn't seem to be working how I would expect. Basically, I want to make a pop-up window that displays a single chart in its own JFrame when the user clicks on the smaller version of it which is displayed in the main GUI...
by jahjeremy
Fri Mar 27, 2015 10:43 pm
Forum: JFreeChart
Topic: problem rendering chart for saving
Replies: 1
Views: 3066

Re: problem rendering chart for saving

Okay, so this custom Graphics2D implementation that is being passed to the ChartPanel does not implement getDeviceConfiguration and hence the null pointer exception. Mystery solved, but I'm still wondering if there's a way to draw the chart onto an arbitrary Graphics2D without using this. Maybe I sh...
by jahjeremy
Fri Mar 27, 2015 9:58 pm
Forum: JFreeChart
Topic: problem rendering chart for saving
Replies: 1
Views: 3066

problem rendering chart for saving

Hi, I'm having an issue with painting a ChartPanel. This is using the JFreeChart 1.0.19 distribution. Basically, there is a null pointer exception here.... GraphicsConfiguration gc = g2.getDeviceConfiguration(); this.chartBuffer = gc.createCompatibleImage(this.chartBufferWidth, this.chartBufferHeigh...
by jahjeremy
Mon Oct 13, 2014 10:42 pm
Forum: JFreeChart
Topic: Simple question about display of axis range
Replies: 2
Views: 3741

Re: Simple question about display of axis range

Okay, I see what you're saying. But actually setting minimum sizes when auto ranging also doesn't always give me what I want.

Working on test code now....
by jahjeremy
Fri Oct 10, 2014 1:59 am
Forum: JFreeChart
Topic: StackedXYAreaChart with strange lines
Replies: 5
Views: 6355

Re: StackedXYAreaChart with strange lines

Isn't this the simplest way to make that go away?

Code: Select all

XYBarRenderer.setDefaultShadowsVisible(false);
by jahjeremy
Thu Oct 09, 2014 11:58 pm
Forum: JFreeChart
Topic: Simple question about display of axis range
Replies: 2
Views: 3741

Simple question about display of axis range

Hi, I have what is hopefully a simple question about the display area of a chart when explicitly setting an axis range. I create an axis like this in the usual way: NumberAxis xAxis = new NumberAxis("X Axis"); xAxis.setRange(new Range(0.0, 2.0), true, true); plot.setDomainAxis(xAxis); So I'm trying ...
by jahjeremy
Tue Sep 24, 2013 9:16 pm
Forum: JFreeChart
Topic: Trafic Lights - is there a posibility to create it.
Replies: 5
Views: 7111

Re: Trafic Lights - is there a posibility to create it.

Displaying animated traffic lights is not charting or plotting per se, so I don't think there's anything in JFreeChart for doing this. On the other hand, you could probably come up with something decent by coding directly to the Java 2D API instead, and then you can make it exactly how you want it. ...
by jahjeremy
Tue Sep 24, 2013 9:14 pm
Forum: JFreeChart
Topic: I have a special request from our customer
Replies: 3
Views: 4907

Re: I have a special request from our customer

Or you could just tell them this is "chart junk" that they don't need! :wink:
by jahjeremy
Tue Sep 24, 2013 9:12 pm
Forum: JFreeChart
Topic: Best way to implement a strip chart?
Replies: 1
Views: 2880

Best way to implement a strip chart?

Hello, everyone. I had a general question before I get going on a new project. What is the best strategy for implementing a strip chart using JFreeChart? Basically, data values are plotted on the Y axis and time on X. It should "roll" to the right as data values are added in real time. I think typic...
by jahjeremy
Sat Mar 23, 2013 12:36 am
Forum: JFreeChart
Topic: Suppressing display of zero values with XYStepRenderer
Replies: 0
Views: 2820

Suppressing display of zero values with XYStepRenderer

Hello, I was wondering if anyone could give me some advice on this. I am using the XYStepRenderer to display an outline of histogram data, as shown here: http://www.slac.stanford.edu/~jeremym/jfreechart_step_chart.png This is ALMOST looking how I want but as you can see there are lines being drawn a...
by jahjeremy
Wed Mar 06, 2013 2:35 am
Forum: JFreeChart
Topic: grid lines when using block renderer
Replies: 1
Views: 2451

grid lines when using block renderer

Hi, I'm experiencing a problem similar to this one: http://community.jaspersoft.com/questions/534091/jfreechart-xyblock-chart-doesnt-show-gridlines When I have a block renderer set, I can't see the grid lines. Actually, I've got a couple renderers set on my XYPlot that I am turning on/off dynamicall...
by jahjeremy
Wed Mar 06, 2013 12:40 am
Forum: JFreeChart
Topic: Visibility setting of XYBlockRenderer
Replies: 1
Views: 2557

Visibility setting of XYBlockRenderer

Hi, I'm encountering a weird problem with the XYBlockRenderer. It seems like it is not respecting the setting of setSeriesVisible(0, false) that I am using to try and turn it off. Indeed, when I look at its drawItem() method, it seems like it doesn't check this. Now, I'm supposing that something tha...
by jahjeremy
Tue Mar 05, 2013 7:48 pm
Forum: JFreeChart
Topic: XYBubbleRenderer with other shapes
Replies: 3
Views: 3825

Re: XYBubbleRenderer with other shapes

Hi. Thanks for the feedback and the link. Yes, after my initial post I realized that the bubble renderer is not appropriate here, because 2D histograms are binned and the boxes need to be constrained into fitting inside their respective bins. So I'm considering writing a renderer to display shapes t...
by jahjeremy
Tue Mar 05, 2013 1:31 am
Forum: JFreeChart
Topic: XYBubbleRenderer with other shapes
Replies: 3
Views: 3825

XYBubbleRenderer with other shapes

Hi, I have posted a few times about displaying 2D histogram data using shapes scaled by the Z values, but the discussion never really went anywhere. Two dimensional histogram data can be displayed as a color chart, but the big problem there is that only one dataset is displayble at a time. Multiple ...
by jahjeremy
Mon Mar 04, 2013 8:04 pm
Forum: JFreeChart
Topic: Minor inconsistency in drawing of tic marks with grid lines
Replies: 2
Views: 3688

Re: Minor inconsistency in drawing of tic marks with grid li

Thanks for the explanation. This makes sense. I guess my main concern is that drawing the grid lines over the axis lines sometimes looks a bit weird. Is there any way to control this rendering order or is it basically hard-coded? By default, I would actually want the axis lines drawn over the grid l...