Legends in multiple lines

Share RGraph:   To help my Google visibility (it can't get much worse!), if you like and use RGraph I'd appreciate it if you could link to me

« Back to message list

Enter your email address to get email updates on this topic. You can stop receiving updates by clicking the link in the update email messages.

Posted by Wrox on 3rd July 2014
Hello Richard,

Can we plot the chart keys\legends in multiple line if it exceeds canvas length ?


Thanks

Gaurav
Posted by Richard on 3rd July 2014
No you can't have multiple line keys. Just shorten the key length and add the full label beneath the canvas.





Richard
Posted by Wrox on 3rd July 2014
Could you please provide example.

In my case canvas size is
 
  cvsChartDetails.width = 305;
  cvsChartDetails.height = 210;

And i need to plot data for 15 legends.


Thanks

Gaurav
Posted by Richard on 3rd July 2014
I don't have an example of it but it's very simple - instead of using the full label just shorten it and add a span tag underneath the canvas containing the full label.





Richard

Add a reply




« Back to message list