newlines in in-graph labels?


« 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 Laura Gilbert on 10th August 2013
Hi,


line1.Set('chart.labels.ingraph', graphlabels);

graphlabels is an array of data of the form [0,10,blue,longstringcontainingseveral/r/ns]

The carriage returns appeared to be ignored. Is there a way I can get a newline in the in-graph labels?

Many thanks,

Laura

Posted by RGraph support on 12th August 2013
Hi there,


Your carriage return is using the wrong slash - try this instead:

\r\n




Richard, RGraph Support

Help support RGraph - single site license only £99
   www.rgraph.net/license#single-site
Posted by Laura Gilbert on 12th August 2013
I'm really sorry - that is actually what I am using. I wrote the original question wrong. It isn't working with \r\n either.
Posted by Laura Gilbert on 12th August 2013
When I output the string to the console it shows it broken over multiple lines, it just doesn't show that in the label.
Posted by RGraph support on 12th August 2013
Hi there,

Try this:

www.rgraph.net/fiddle/view/a-line-chart-with-ingraph-labels


Richard, RGraph Support

Help support RGraph - single site license only £99
   www.rgraph.net/license#single-site
Posted by Laura Gilbert on 12th August 2013
Ah. I was being stupid. Thank you very much.

Add a reply

 




« Back to message list
RGraph on social media