Home forums Using CanvasJS Legend heading

This topic contains 1 reply, has 2 voices, and was last updated by  Bivek Singh 10 months, 3 weeks ago.

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

    kunwarshukla
    Member

    Hi,

    I am struggling for the below issue from last 2 days. Can you please help me?

    I have a doughnut chart and have created a legend with properties:
    horizontalAlign: “right”,
    verticalAlign: “center”,
    fontFamily : “Helvetica”,
    fontSize : 14,
    markerMargin: 7,
    fontWeight : “bolder”,
    fontColor : “#555″,
    maxWidth : 600,
    itemWidth : 350

    Now the legend is shown in right center vertically but the problem is i want to show some heading above the legend. Please note my legend contain combination of two separate string, one is percentage(some number) string and another is some text(label) in front of each percentage. I padded some right space in percentage so that there is some gab between percentage and text(label). So now i want to show heading over percentage and over text and some space between each legend vertically.

    This is my logic for function creating a legend:
    legendText:” – “+(percentArr[count])+” “+label

    My legend looks like:
    squarebox – 5% Some text
    squarebox – 2% some text
    —–

    Now how can i add some heading over that percentage and some text and a space between each line of legend?
    Thanks in advance!

    #13865

    Bivek Singh
    Moderator

    @kunwarshukla

    As of now, this is not possible as we don’t have legend title.

    —-
    Bivek

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

You must be logged in to reply to this topic.