Home forums Using CanvasJS Doughnut chart

This topic contains 5 replies, has 2 voices, and was last updated by  mansourqalen 9 months, 1 week ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #18843

    mansourqalen
    Member

    How can i show all count at center of doughnut chart?

    #18850

    Indranil Deo
    Member

    @mansourqalen,

    You can use title to display the total value. Setting the align property of title to center will display the title at the center of the doughnut.

    Please take a look at this jsfiddle.

    ___________
    Indranil Deo,
    Team CanvasJS

    #18856

    mansourqalen
    Member

    thanks Indranil Deo

    #18857

    mansourqalen
    Member

    error: Cannot read property ‘set’ of undefined @indranil

    #18870

    Indranil Deo
    Member

    @mansourqalen,

    The error was being thrown as the set method was being used on title without defining it in chart options.

    Please take a look at this updated jsfiddle. Also, please take a look at set property for more information.

    ___________
    Indranil Deo,
    Team CanvasJS

    #18871

    mansourqalen
    Member

    @indranil. Thanks! Problem was in, i used old version of canvas.js.

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

You must be logged in to reply to this topic.