PDA

View Full Version : Default tooltip on line charts doesn't work



pgraham
20 Aug 2009, 8:58 AM
Hi all,

I'm experiencing a bug with regards to default tooltips in LineCharts with hollow dots:

Code to reproduce:



LineChart line = new LineChart();
line.setTooltip("#x_label#<br>#val#%");

for (int val : values) {
HollowDot dot = new HollowDot(val);
line.addDots(dot);
}
Expected result:
Tooltip for all dots added to the line should be in the form:

My X Label
10%

Actual result:
Tooltip displayed is #val#

Arno.Nyhm
21 Aug 2009, 1:44 AM
is this example is working for you?
http://extjs.com/examples/explorer.html#basicchart

please give a full working example. maybe it depends on the data you need to display.

sven
21 Aug 2009, 2:22 AM
You need to define the tooltip on the dot.