SharpPlot Tutorials > Style Examples > No text wrapping

No text wrapping

Applies to most text items – wrapping to the ‘natural’ margins is turned off.


// Turn off wrapping on heading and legend
 sp.Heading = "This text would normally be wrapped at the paper edge";
 sp.Subheading = "This text would normally be wrapped at the chart margins";
 sp.HeadingStyle = HeadingStyles.NoWrap;
 
 sp.SetKeyText(new string[] {"Data points are here","Fitted trend is here too"});
 sp.KeyStyle = KeyStyles.Vertical|KeyStyles.NoWrap;

Depending on the output medium chosen, this may result in text being clipped at either edge of the chart.


Send comments on this topic
© Dyalog Ltd 2021