Search found 11 matches

by mminer
Wed Aug 08, 2007 3:50 pm
Forum: JFreeChart
Topic: Hiding items on a plot using BoxAndWhiskerRenderer
Replies: 5
Views: 6070

For now, you could extend the BoxAndWhiskerRenderer, override the drawHorizontalItem and drawVerticalItem and add the following two lines in the beginning Thanks Priya, that worked like a charm. Though it may not be a bug, it certainly seems like it is when the setSeriesVisibility() does nothing de...
by mminer
Thu Aug 02, 2007 3:07 pm
Forum: JFreeChart
Topic: Overlay multiple box plots?
Replies: 1
Views: 3320

I believe I'm having the same problem. Whenever I add two BoxAndWhiskerItems with the same column key to the dataset, they appear beside each other rather than one overlaying the other. I realize this looks cramped, but in my situation it's the desired output. Is there a way that I might force the b...
by mminer
Wed Aug 01, 2007 9:17 pm
Forum: JFreeChart
Topic: Hiding items on a plot using BoxAndWhiskerRenderer
Replies: 5
Views: 6070

Hiding items on a plot using BoxAndWhiskerRenderer

I have a CategoryPlot rendered by a BoxAndWhiskerRenderer. On this plot I have a DefaultBoxAndWhiskerCategoryDataset, which contains twelve items. I would like to temporarily hide a row on this dataset, or even the whole thing. However, I'm unable to do so. I would expect the following code to hide ...
by mminer
Fri Jun 29, 2007 2:28 pm
Forum: JFreeChart
Topic: Calling autoAdjustRange() in NumberAxis
Replies: 4
Views: 5016

When I created the NumberAxis I tried calling the setAutoRangeIncludesZero() method which I hoped would solve the problem, but it doesn't appear to have made any difference Disregard this, I found the reason why calling the setAutoRangeIncludesZero() method didn't work. Deep in my code I set the pl...
by mminer
Fri Jun 29, 2007 1:08 pm
Forum: JFreeChart
Topic: Calling autoAdjustRange() in NumberAxis
Replies: 4
Views: 5016

I have a line graph which has a y minimum of about 200 and a maximum of about 250. Unfortunately, as the NumberAxis I'm using for the range starts at zero, this leaves a lot of empty space below the line. When I created the NumberAxis I tried calling the setAutoRangeIncludesZero() method which I hop...
by mminer
Thu Jun 28, 2007 8:58 pm
Forum: JFreeChart
Topic: Calling autoAdjustRange() in NumberAxis
Replies: 4
Views: 5016

Calling autoAdjustRange() in NumberAxis

Perhaps I'm missing something obvious, but I'm unable to call the autoAdjustRange() method in NumberAxis due to it having protected access. How might I perform this operation? If I had something like a LogarithmicAxis object I could do it, but not so with a plain old NumberAxis. Any suggestions are ...
by mminer
Tue Jun 12, 2007 6:56 pm
Forum: JFreeChart
Topic: Remove series from DefaultBoxAndWhiskerCategoryDataset?
Replies: 2
Views: 3350

Thanks, I'll keep an eye out for those methods in future versions. In the meantime I'm storing each series in a HashMap which represents a dataset. When I add a series to the chart it's added to the HashMap, after which the map is sent to a function called remakeDataset(), which constructs and retur...
by mminer
Mon Jun 11, 2007 7:30 pm
Forum: JFreeChart
Topic: Retrieving the colour of a dataset on a chart
Replies: 3
Views: 4102

I've found a solution to my problem. When I get the Paint object that is used to colour the bars in the XYBarRenderer, I cast it to a Color object on which I can then run functions like getRGB(), getRed(), etc. From looking at the javadoc for java.awt.Paint it wasn't obvious to me that this could be...
by mminer
Fri Jun 08, 2007 4:59 pm
Forum: JFreeChart
Topic: Remove series from DefaultBoxAndWhiskerCategoryDataset?
Replies: 2
Views: 3350

Remove series from DefaultBoxAndWhiskerCategoryDataset?

I would like to remove a series from a DefaultBoxAndWhiskerCategoryDataset, but there appears to be no way to do this. Any suggestions? In other datasets like TimeSeriesCollection there's methods to get the index of a particular series and remove it, but not so for this particular dataset. I'd prefe...
by mminer
Thu Jun 07, 2007 1:30 pm
Forum: JFreeChart
Topic: Retrieving the colour of a dataset on a chart
Replies: 3
Views: 4102

I apologize for the awkward wording, I was indeed referring to the colour of the series. I looked again at the XYLineAndShapeRenderer and XYBarRenderer classes (these are the renderers I'm using) and could only find methods which return a Paint object. This sounds promising, but I'm unsure how I can...
by mminer
Wed Jun 06, 2007 8:19 pm
Forum: JFreeChart
Topic: Retrieving the colour of a dataset on a chart
Replies: 3
Views: 4102

Retrieving the colour of a dataset on a chart

This has perhaps been asked before, but I haven't been able to find the answer through the search function. My question is, how might I retrieve the colour of a dataset on the chart? I'm using JFreeChart in a servlet and have form controls which allow you to add or remove a dataset. For usability, I...