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
Questions about some charts
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
Re: Questions about some charts
You can completely customise the tooltips by writing a class that implements the CategoryItemLabelGenerator interface.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!)
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:
* Is there a way of stopping the categories from wrapping - when they are too many it becomes worst than without wrapping!
The four settings have been combined into a single CategoryLabelPositions object.luis_esru wrote:BarChartDemo:
* Why is the method 'setBottomCategoryLabelPosition' deprecated?
Sounds like a bug, I'll take a look.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?
I haven't had time to see what is involved in fixing this.luis_esru wrote:ContourPlotDemo:
* Will the Properties from the pop-up menu be working any time soon?
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader


-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
Re: Questions about some charts
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 wrote:Sounds like a bug, I'll take a look.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?
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader

