Home › forums › Using CanvasJS › Trying to set padding to legend items
This topic contains 1 reply, has 2 voices, and was last updated by Manoj Mohan 3 weeks, 5 days ago.
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 to test if padding is working
chart.legend.items.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.
You must be logged in to reply to this topic.