In a Multi-Series or a Combination Chart, it is often required to display all values common to x value in a single bubble. Setting shared to true will show in a common bubble all the values of y from each series next to their name.
Default: falsevar chart = new CanvasJS.Chart("container", { . . toolTip:{ shared: true, }, . . }); chart.render();
Also See:
9 Comments
Is possible to show in the shared toolTip just some dataSeries?
Using something like a showInToolTip property for example.
Yes you can do it by setting toolTipContent as null for those dataSeries to be skipped.
Here is a jsfiddle.
Thanks
How do I get the x axis label (the date in my case) to show as the title of the tooltip? Setting the label changes the X axis labels, not the title of the tooltip
Ed,
In the above example you can see that label is being displayed as x-axis label and is also visible inside the toolTip. Can you please describe the issue you are facing in more detail? If you can create a jsfiddle that would also help in understanding the problem.
Recently upgraded from v1.5.6 to 1.8.0 Beta4 and have noticed that shared toolTip now shows all values with one color (http://i.imgur.com/KeFEGZQ.png).
In v1.5.6 tooltip shows values with color of corresponding data series (http://i.imgur.com/Og4xNhW.png).
Can I have same behavior in new version?
This is a regression bug and we’ve fixed the same. Will be releasing the same in the next release.
default:true is wrong, shared defaults to false.
Thanks for reporting. Corrected the same…