Home forums Chart Support Trying to set padding to legend items

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

    Hi there,

    I’m trying to set padding on each legend item but it doesn’t take any affect.

    I have more than 7 items in my legend so would like to break them into two separate lines with little gap between each line. Without padding, these two lines are little tight/close to each other. Please advise.

    I’m setting padding something like so:

    //used items[0] to test if padding is working
    chart.legend.items[0].textBlock.padding = 10;




    Sorry, padding in legend items is not available as of now.

    If you are trying to organize the legend items in columns, you can do by setting itemWidth property.

    Manoj Mohan
    Team CanvasJS

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

You must be logged in to reply to this topic.