| ||
SharpPlot Tutorials General Tutorials Chart Samples Style Examples SharpLeaf Tutorials Document Layout Tutorials Text Flow Tutorials Table Tutorials Visual Glossaries SharpPlot Class SharpPlot Methods SharpPlot Structures SharpPlot Enumerations PageMap Class SharpLeaf Reference SharpLeaf Class SharpLeaf Properties SharpLeaf Methods Table Class Table Properties Table Methods SharpLeaf Structures FontType Structure ParagraphStyle Structure BoxStyle Structure SharpLeaf Enumerations DocumentLayout Classes DocumentLayout Class PageLayout Class PageElement Abstract Class Frame : PageElement Class TextBlock : PageElement Class ImageBlock : PageElement Class Box : PageElement Class Rule : PageElement Class Common Reference Document Class VectorMath Class DbUtil Class Download Release Notes Licensing |
SharpPlot Reference > SharpPlot Properties > YLabelFormat Property SharpPlot.YLabelFormat PropertySet picture format for Y-axis labels. public string YLabelFormat {get; set;} This uses the normal C# format string, with two small variations. The ‘%’ symbol has no effect on the scale of the data, and you may use the ‘~’ character anywhere in the picture to suppress the digit at that position. Examplesp.YLabelFormat = "##0.00%"; To show the numbers to 2 decimal places with a trailing % symbol. Note that this does not automatically multiply the values by 100 (unlike VB and many OCX controls such as the Flexgrid). Wrapping text labelsText labels may be wrapped into a preset width with a format such as: sp.YLabelFormat = "XXXXXX;"; This will force the labels to wrap at the length of the given string. If the string is simply ‘XXXXXXX’ then longer labels are clipped, using a final ellipsis ‘...’ to denote truncation if any. See also ...Using Picture Formatters | Formatting text with simple HTML tags | SharpPlot Members |