Search found 16 matches
- Fri Nov 22, 2013 11:34 pm
- Forum: JFreeChart
- Topic: Useful RegularTimePeriod
- Replies: 1
- Views: 3953
Re: Useful RegularTimePeriod
Digging up this very old post. I tried to use the code, but it no longer compiles. Assuming RegularTimePeriod must have changed some over the years. I'd like to make or use a subclass of RegularTimePeriod. Currently I only need a 'QuarterHour' subclass but having a dynamic one might be nice. My curr...
- Tue Nov 19, 2013 1:48 am
- Forum: JFreeChart
- Topic: Animated Annotation?
- Replies: 2
- Views: 4500
Re: Animated Annotation?
Thanks, that makes sense. I decided to take a look at XYImageAnnotation and see if I could override it's behavior to use an animated GIF. After a lot of unsuccessful struggling trying to get the annotation to repaint with a new frame, I finally stumbled on a way: Remove the annotation and re-add it....
- Thu Nov 14, 2013 1:41 am
- Forum: JFreeChart
- Topic: adding multi data sets on same plot
- Replies: 4
- Views: 6371
Re: adding multi data sets on same plot
I think you're on the right track--I assume you'll need to break your data into multiple data series, then add each of them to your XYSeriesCollection, and then add that to your plot. We did something very similar with multiple TimeSeries in a TimeSeriesCollection. I don't know of an easier more eff...
- Wed Nov 13, 2013 5:58 pm
- Forum: JFreeChart
- Topic: adding multi data sets on same plot
- Replies: 4
- Views: 6371
Re: adding multi data sets on same plot
I'd suggest running the JFreeChart Demo app. It has a lot of simple examples of plotting multiple data sets on the same plot, and they all include the source. Start with one of the simple demo app's source code that fits your case the best, and modify it to your specific needs and data. Also, using ...
- Wed Nov 13, 2013 5:34 pm
- Forum: JFreeChart
- Topic: dataset with multiple series color
- Replies: 2
- Views: 5670
Re: dataset with multiple series color
Here's the code we use for having a different color for each Y axis. Our use case has multiple Y axes, and only one X axis. Toward the bottom is an example of setting different colors in same TimeSeriesCollection. Color colorData = ... TimeSeriesCollection tsc = ... // each axis requires TimeSeriesC...
- Tue Nov 12, 2013 1:09 am
- Forum: JFreeChart
- Topic: Animated Annotation?
- Replies: 2
- Views: 4500
Animated Annotation?
I tried creating an XYImageAnnotation with an animated gif, but it just shows the first frame in the animated gif. So I looked around a bit, and found this bit of code for displaying animated gifs in Java: http://stackoverflow.com/questions/8958808/use-animated-gif-in-desktop-application Apparently ...
- Tue Nov 05, 2013 1:13 am
- Forum: JFreeChart
- Topic: XYImage Annotation and zooming
- Replies: 5
- Views: 7129
Re: XYImage Annotation and zooming
i could fix the problem with the rendering issue. On the Panel i called the 2 methods: chartPanel.setMaximumDrawWidth(d.width); chartPanel.setMaximumDrawHeight(d.height); this seem to fix it if you set the max and min drawheight to a higher value, jfreechart doesnt scale the items on itself. Thanks...
- Tue Sep 17, 2013 10:04 pm
- Forum: JFreeChart
- Topic: PeriodAxis - vertical tick labels?
- Replies: 6
- Views: 9332
Re: PeriodAxis - vertical tick labels?
Digging up a really old thread.
Is this still the case? I'd also like to use vertical text tick marks on a PeriodAxis, but setVerticalTickLabels(true) does nothing for it.
Are there any good workarounds?
Is this still the case? I'd also like to use vertical text tick marks on a PeriodAxis, but setVerticalTickLabels(true) does nothing for it.
Are there any good workarounds?
- Fri Aug 09, 2013 10:00 pm
- Forum: JFreeChart
- Topic: Panning on PeriodAxis -- double rounding, range expanding
- Replies: 4
- Views: 8825
Re: Panning on PeriodAxis -- double rounding, range expandin
Just thought I'd pass on a slightly better solution we found for this problem. Turns out that panning worked much better using Seconds rather than Minutes. It still has rounding errors and expands most panning ticks, but the expansion is by the second instead of by the minute, so it's not so noticea...
- Tue Aug 06, 2013 6:35 pm
- Forum: JFreeChart
- Topic: Drag for Pan, CTRL Drag for Zoom?
- Replies: 0
- Views: 3449
Drag for Pan, CTRL Drag for Zoom?
We'd like to reverse the default behavior, and have mouse drags do panning, and CTRL drags do zooming. I was looking over the code in ChartPanel, and it looks like it would be doable with a few changes to mousePressed() and mouseDragged(). However I'm currently stuck with a binary version of JFreeCh...
- Fri Jul 26, 2013 6:43 pm
- Forum: JFreeChart
- Topic: Panning on PeriodAxis -- double rounding, range expanding
- Replies: 4
- Views: 8825
Re: Panning on PeriodAxis -- double rounding, range expandin
Here's the temporary fix I'm going with, that seems to work for our use case. Our PeriodAxis's Range is showing 16 minutes worth of data. It's far from perfect, as it normalizes all spanning ticks to move the same amount, and assumes that adding 30000 to lower and subtracting 30000 to upper is ok to...
- Fri Jul 26, 2013 12:46 am
- Forum: JFreeChart
- Topic: Panning on PeriodAxis -- double rounding, range expanding
- Replies: 4
- Views: 8825
Panning on PeriodAxis -- double rounding, range expanding
I was seeing weird behavior after enabling domain panning on a chart with a domain PeriodAxis. On each panning tick the chart's domain axis would grow a little bit. After some googling I found this post: http://sourceforge.net/p/jfreechart/bugs/1089/ I subclassed PeriodAxis, overrode it's pan method...
- Wed Jun 05, 2013 4:34 pm
- Forum: JFreeChart
- Topic: non-global Tooltip settings questions
- Replies: 2
- Views: 4967
Re: non-global Tooltip settings questions
Thanks, exactly what I was looking for.
I suppose we could just use the HTML markup features of tooltips for changing the style.
I suppose we could just use the HTML markup features of tooltips for changing the style.
- Wed Jun 05, 2013 12:47 am
- Forum: JFreeChart
- Topic: non-global Tooltip settings questions
- Replies: 2
- Views: 4967
non-global Tooltip settings questions
I've implemented a simple XYToolTipGenerator and plugged it into my Chart and was very happy. Then I realized I'd like to customize a few things, like the tooltip delay, maybe the font and color, etc. So after a bit of googling I found out about ToolTipManager: "Manages all the ToolTips in the syste...
- Fri May 10, 2013 7:08 pm
- Forum: JFreeChart
- Topic: On Zoom, providing more detailed data and stuff
- Replies: 2
- Views: 5066
Re: On Zoom, providing more detailed data and stuff
Thank you for the suggestion--I'll be sure to try that when when get there.I'd do it by extending ChartPanel and adding specific zoom events to those methods.
I was looking through all the examples and it definitely looks like it can cover everything we want to do.