You must be logged in to post your query.
Home › Forums › Chart Support › Trying to set padding to legend items
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;
Thanks, Anil
Anil,
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
You must be logged in to reply to this topic. Login/Register