Home forums Using CanvasJS Showing #total inside a regular label or just on hover

Tagged: 

This topic contains 1 reply, has 2 voices, and was last updated by  Sunil Urs 1 month, 2 weeks ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #12777

    bas.jansen
    Member

    Hello,

    Is it possible to use #total inside a regular label instead of an indexLabel?
    For example I want xValueFormatString to look like:

    "Input: €1.000,50
    Total: #total"

    Is it possible to add #total to other options as indexLabel?

    Best regards,

    B. Jansen

    #12819

    Sunil Urs
    Keymaster

    Jansen,

    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.


    Sunil Urs

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.