Questions about some charts

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
luis_esru
Posts: 42
Joined: Tue Jan 20, 2004 6:40 pm
Location: Glasgow
Contact:

Questions about some charts

Post by luis_esru » Wed Mar 24, 2004 5:37 pm

Dear David

I have some questions about some charts.

BarChartDemo:
* I would like to customize the ToolTips to include/exclude and change the order of information. Is there a working example of that? (note: this is also required in other charts!)
* Is there a way of stopping the categories from wrapping - when they are too many it becomes worst than without wrapping!
* Why is the method 'setBottomCategoryLabelPosition' deprecated?

SurveyResultsDemo3:
* Same wrapping issue.
* Why is the method 'setLeftCategoryLabelPosition' deprecated?

StackedAreaXYChartDemo:
* Here the problem occurs when some series have zeros in it.
eg,
Series1 = 1,3,2,4,5,5
Series2 = 0,0,0,0,0,0
Series3 = 5,8,9,3,5,2
Series4 = 9,7,8,5,4,3
Series5 = 0,0,0,0,0,0
Series6 = 4,5,6,7,5,3

In this case the returned values on the ToolTips for Series1 and Series4 are zero because of the overlapped data points – is there a way of avoiding this?

ContourPlotDemo:
* Will the Properties from the pop-up menu be working any time soon?

Best regards
Luis
University of Strathclyde in Glasgow
ESRU
luis@esru.strath.ac.uk

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Re: Questions about some charts

Post by david.gilbert » Thu Mar 25, 2004 10:36 am

luis_esru wrote:BarChartDemo:
* I would like to customize the ToolTips to include/exclude and change the order of information. Is there a working example of that? (note: this is also required in other charts!)
You can completely customise the tooltips by writing a class that implements the CategoryItemLabelGenerator interface.
luis_esru wrote:BarChartDemo:
* Is there a way of stopping the categories from wrapping - when they are too many it becomes worst than without wrapping!
Use setMaxCategoryLabelWidthRatio() and make it a large percentage. The default is to wrap at 90% (0.90) of the category width. Make it 10000% or something and wrapping won't happen.
luis_esru wrote:BarChartDemo:
* Why is the method 'setBottomCategoryLabelPosition' deprecated?
The four settings have been combined into a single CategoryLabelPositions object.
luis_esru wrote:StackedAreaXYChartDemo:
* Here the problem occurs when some series have zeros in it.
eg,
Series1 = 1,3,2,4,5,5
Series2 = 0,0,0,0,0,0
Series3 = 5,8,9,3,5,2
Series4 = 9,7,8,5,4,3
Series5 = 0,0,0,0,0,0
Series6 = 4,5,6,7,5,3

In this case the returned values on the ToolTips for Series1 and Series4 are zero because of the overlapped data points – is there a way of avoiding this?
Sounds like a bug, I'll take a look.
luis_esru wrote:ContourPlotDemo:
* Will the Properties from the pop-up menu be working any time soon?
I haven't had time to see what is involved in fixing this.
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Re: Questions about some charts

Post by david.gilbert » Thu Mar 25, 2004 11:18 am

david.gilbert wrote:
luis_esru wrote:StackedAreaXYChartDemo:
* Here the problem occurs when some series have zeros in it.
eg,
Series1 = 1,3,2,4,5,5
Series2 = 0,0,0,0,0,0
Series3 = 5,8,9,3,5,2
Series4 = 9,7,8,5,4,3
Series5 = 0,0,0,0,0,0
Series6 = 4,5,6,7,5,3

In this case the returned values on the ToolTips for Series1 and Series4 are zero because of the overlapped data points – is there a way of avoiding this?
Sounds like a bug, I'll take a look.
I see what is happening...the "hot spot" is a small area around the (x, y) coordinate, so series 2 obscures series 1 and series 5 obscures series 4. The solution will be to change the "hotspot" to the full area that is filled in for the given data value. I'll add that to the to-do list...
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

luis_esru
Posts: 42
Joined: Tue Jan 20, 2004 6:40 pm
Location: Glasgow
Contact:

Post by luis_esru » Thu Mar 25, 2004 11:29 am

Thanks.
Regards
Luis
University of Strathclyde in Glasgow
ESRU
luis@esru.strath.ac.uk

Locked