Prasad Tanksali
-
2008-09-01
- priority: 5 --> 7
I would like to know, is there any way to customize the tooltip; where I can add text as well as value other than the default total and value.
I have pasted a sample code below:
{ "title":
{
"text": "Mon Aug 18 2008" },
"elements": [ {
"type": "bar_stack",
"values": [ [ 2.5, 5 ], [ 7.5 ], [ 5, { "val": 5, "colour": "#ff0000", "tip": "apple-#val#" } ], [ 2, 2, 2, 2, { "val": 2, "colour": "#ff00ff", "tip": "Lion - #val#" } ] ] } ],
"x_axis": { "labels": [ "a", "b", "c", "d" ] },
"y_axis": { "min": 0, "max": 14, "steps": 7 }
}
But this code doesn't work....
My email id : ptanksal@in.ibm.com