Search found 18 matches

by SeanMcCrohan
Tue Aug 08, 2006 6:02 pm
Forum: JFreeChart
Topic: Problem creating times series comparisons
Replies: 1
Views: 2542

Name the series to reflect the year they're supposed to represent, but change the dates on the datapoints so they all have the same year set. You might also want to change the domain axis's DateFormat so that it will only display day/month, not year.
by SeanMcCrohan
Tue Aug 08, 2006 5:49 pm
Forum: JFreeChart
Topic: Changing color.
Replies: 1
Views: 2886

The user is selecting the variables from a list, right? So this doesn't sound like a problem. You have a list of available variables (indexed). You have a list of colors (using the same index). There's nothing that says that index has to match the index of the series in the renderer. Just map the tw...
by SeanMcCrohan
Tue Aug 08, 2006 5:32 pm
Forum: JFreeChart
Topic: Line chart - drawing an average line between 2 points
Replies: 2
Views: 4164

If you supply NO data for those years, this will happen automatically. That is to say: If you have a series that contains year 1, year 2, year 5, year 6 and year 7...those points will be connected in sequence, with the interval between 2 and 5 appropriately wide. Change the type of the chart to LINE...
by SeanMcCrohan
Tue Aug 08, 2006 5:25 pm
Forum: JFreeChart
Topic: Windowing of data
Replies: 3
Views: 7081

There are two ways I can think of right off the bat to do that. 1) Load all of the data up front. Disable the zoom controls. Zoom the chart (set the domain axis range) to cover a 1-year span. Provide forward and back buttons to move the range in either direction. The last part of that is quite easy ...
by SeanMcCrohan
Mon Aug 07, 2006 11:17 pm
Forum: JFreeChart
Topic: How do you change the chart values after it has been display
Replies: 4
Views: 5230

First, DON'T re-instantiate the chart to update it. You can end up with a memory leak that way - because of the wide variety of listeners between charts and chartPanels and so on, the old chart objects are likely to still have references and not be properly disposed. I wrestled with that one for a w...
by SeanMcCrohan
Mon Aug 07, 2006 8:44 pm
Forum: JFreeChart
Topic: Huge Time series
Replies: 3
Views: 7048

I have one chart that's currently showing 20 series, each with 3 days of per-minute data. That's 86400 data points, and it works fine. 100000 shouldn't be a problem. I've found the main limiting factor to be heap space, and that has less to do with JFreeChart than it does with parsing the results fr...
by SeanMcCrohan
Mon Aug 07, 2006 3:16 pm
Forum: JFreeChart
Topic: Reducing huge dataset
Replies: 9
Views: 17419

Take an average of the whole dataset, to get a baseline. For each minute, create a datapoint that is either the maximum value for that minute or the minimum value, depending on which is further away from the day's average. That is, show the MOST EXTREME value for each time period, rather than averag...
by SeanMcCrohan
Fri Aug 04, 2006 3:27 pm
Forum: JFreeChart
Topic: Problem with Date adjustments in XYAreaChart.
Replies: 1
Views: 2687

Pavan - I'm not sure I understand. Is the problem that the datapoints being plotted don't match the data in the dataset? Or is it that the range of the X axis doesn't match the range of the data?
by SeanMcCrohan
Thu Aug 03, 2006 5:32 pm
Forum: JFreeChart
Topic: Can we create drill downs with JFree Charts
Replies: 6
Views: 7305

Only on the Java side; I haven't done anything with JFreeChart as an applet. Set up a ChartMouseListener, register it with your chart, and then get the URL from the clicked chart entity with something like: public void chartMouseClicked(ChartMouseEvent event) { System.out.println(event.getEntity().g...
by SeanMcCrohan
Thu Aug 03, 2006 2:03 pm
Forum: JFreeChart
Topic: Can we create drill downs with JFree Charts
Replies: 6
Views: 7305

Ah. Then yes, you ought to be able to handle that in JFreeChart. Getting the URL text from a clicked-on chart entity is pretty straightforward.
by SeanMcCrohan
Wed Aug 02, 2006 10:28 pm
Forum: JFreeChart
Topic: Can we create drill downs with JFree Charts
Replies: 6
Views: 7305

What sort of drill-down did you have in mind? There's a ChartMouseClick event that you can use to catch clicks on a chart entity, for instance.
by SeanMcCrohan
Wed Aug 02, 2006 9:42 pm
Forum: JFreeChart
Topic: Logarithmic Axis - How can I use exponential numbers
Replies: 5
Views: 9085

I'm not sure; my log data doesn't have any fractional values, so I hadn't run into that before. I'm not actually even sure how to get gridlines for sub-1 values to show up, as changing the tick unit doesn't seem to do it. However, while looking for that, I did discover something else that might work...
by SeanMcCrohan
Wed Aug 02, 2006 2:44 pm
Forum: JFreeChart
Topic: jfreetreee with date in mm-yyyy with x axis
Replies: 3
Views: 6332

Well, let's see. I don't know anything about the actual format of the data you're getting back, but from your example you'd want something ROUGHLY like this. You'll probably have to fiddle with it a bit to get it working in the context of your project. TimeSeries series = new TimeSeries(); SimpleDat...
by SeanMcCrohan
Tue Aug 01, 2006 9:10 pm
Forum: JFreeChart
Topic: how to specify the unit range on x-axis and y-axis
Replies: 8
Views: 13714

david.gilbert wrote:You can use the setTickUnit() method to specify the gap between tick marks/labels, and the setRange() method to specify the overall range for the axis.
So, like he said. Try:

axis.setTickUnit(new NumberTickUnit(15));
by SeanMcCrohan
Tue Aug 01, 2006 8:42 pm
Forum: JFreeChart
Topic: jfreetreee with date in mm-yyyy with x axis
Replies: 3
Views: 6332

Use a TimeSeries instead of an XYSeries, and (for the examples you gave, which were month and year) convert the String to a org.jfree.data.time.Month