Home Forums Chart Support Is it possible to add heading text above the legend of a chart?

Is it possible to add heading text above the legend of a chart?

Viewing 2 posts - 1 through 2 (of 2 total)
  • #61509

    I have a simple line chart with multiple sets of data that can be toggled on or off.

    While I can control the position of the legend, I don’t see a way to add a heading text or a title above the legend.

    Is this possible?

    #61514

    @jserra,

    Adding title to the legend items is not possible as of now. However, you can use subtitles to make it look like title for the legend items by placing the legend at the top of the chart, as shown in the below code snippet.

    
    subtitles: [{
      text: "Language Shares"
    }],
    legend: {
     verticalAlign: "top"
    },
    

    Check out this JSFiddle for complete code.

    Adding title to legends on positioning it to the top

    —-
    Manoj Mohan
    Team CanvasJS

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

You must be logged in to reply to this topic.