Home › forums › Using CanvasJS › Showing #total inside a regular label or just on hover
This topic contains 1 reply, has 2 voices, and was last updated by Sunil Urs 2 years, 1 month ago.
Is it possible to use #total inside a regular label instead of an indexLabel?
For example I want xValueFormatString to look like:
Is it possible to add #total to other options as indexLabel?
Sorry, but #total is not available in Format Strings because they are meant to specify formatting x/y values only. Also, #total is only available in Stacked, Pie and Doughnut Charts. But you can customise toolTip and indexLabel via a custom formatter of your own – you’ll have to write some additional code to find the total. Please refer to following links on the same.
You must be logged in to reply to this topic.