shared: Boolean

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: false
Example: true, false
Notes
  • In a smaller device/ touchscreen devices, it is advised to show shared Tool Tip.
var  chart =  new  CanvasJS.Chart("container",
{
 .
 .
 toolTip:{
   shared: true,
 },
 .
 . 
});
chart.render();


Try Editing The Code

  Also See:    


If you have any questions, please feel free to ask in our forums.Ask Question

9 Comments

  1. Daniel says:

    Is possible to show in the shared toolTip just some dataSeries?
    Using something like a showInToolTip property for example.

  2. Ed Wade says:

    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

    • Sunil Urs says:

      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.

    • Rishabh Rajgarhia says:

      This is a regression bug and we’ve fixed the same. Will be releasing the same in the next release.

If you have any questions, please feel free to ask in our forums. Ask Question