-
3 Nov 2009 12:33 AM #1
[CLOSED] [2.0.3] BarChart tooltip works partially
[CLOSED] [2.0.3] BarChart tooltip works partially
Hi,
following the question asked here: http://www.extjs.com/forum/showthread.php?t=73178
I've tried to modify the tooltip and it looks like there is no way to use #x_label#, it's always replaced with an empty value.
You can try it with any BarChart example in your demo.
Only the #val# is replaced with the actual value, but according to OFC documentation this should work.Code:bchart.setTooltip("#x_label#: $#val#");
I found that in PieChart #label# works, but only in that chart (according to OFC docs it should be also #x_label#).
GXT: 2.0.3
Browser: Any
Thanks,
Mariusz
-
4 Nov 2009 12:36 AM #2
I was asking for help months ago => http://www.extjs.com/forum/showthread.php?t=71885
no one was able to list all the properties available by charts, and almost none of the attributes works, even if the OFC Documentation says so !
-
4 Nov 2009 12:40 AM #3
I saw few questions about that without an answer, so I reported that as a bug and I hope that someone will finally answer...
-
5 Nov 2009 2:48 AM #4
Some people are waiting for an anwser for 10 months... This issue was mentioned by the first time in February. Can you finally fix it or at least help with finding some workaround? Thanks
-
10 Nov 2009 12:12 AM #5
We are not displaying the tooltip. This is done by OFC. We are looking in updateing the used OFC version for 2.1.
I will close this report for GXT.
-
20 Jul 2011 5:34 AM #6
workaround for BarChart tooltip
workaround for BarChart tooltip
I was unable to get #key#, #x_label# or anything else to work, so I overrode the populateData method in BarDataProvider so that it did something like this:
Number n = getValue(m);
String s = getText(m);
if(n == null) {
chart.addNullValue();
} else {
Bar b = new Bar(n);
b.setTooltip(s+"\nCount:"+n);
(etc)
Note that you need to set the text property in the BarDataProvider to some property of your ModelData. You can use the 3 arg constructor for that, or you can call the setTextProperty on your BarDataProvider instance.
Hope this helps someone
Tom Nelson
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote