SharpPlot Reference > SharpPlot Properties > KeyFormat Property SharpPlot.KeyFormat Property
Set a picture format for key text.
public string KeyFormat {get; set;}
Example
sp.KeyFormat = "XXXXXXXX;";
To force the text to wrap into the space allowed for 8 ‘X’ characters. If the picture does not end with a semi-colon, the text will be truncated if necessary and terminated with an ellipsis character (→) to indicate that it has been clipped.
If you set Keytext to a an array of numbers (perhaps the categories represent numeric product codes) you can give a normal numeric formatter here such as “P0000” to create the text for the legend.
See also ...Using Picture Formatters | SharpPlot Members | SharpPlot.SetKeyText Method
Send comments on this topic © Dyalog Ltd 2021
|