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:
fontFamily : “Helvetica”,
fontSize : 14,
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!