| ||
Introducing SharpPlot Your First Chart Recent Updates Sample Charts Tutorials General Tutorials Chart Tutorials SharpPlot Class Properties Structures Enumerations Style examples Glossaries Active Charts VectorMath Class DBUtil Class Get SharpPlot Download SharpPlot Buying SharpPlot SharpPlot Support Upgrading from GraPL Release notes |
Reference > Methods > SetLabelMask Method SharpPlot.SetLabelMask MethodThis call allows you to selectively eliminate the x-axis labels. SharpPlot tries to do this for you automatically (if the labels collide) but it may not do it quite to your liking. Also it never eliminates labels if you use the angled setting on the X-axis, or for Dial or Polar charts. Examplesp.SetLabelMask(new bool[] {true,false}); // Alternate labels The example shows a DialChart with alternate labels omitted to avoid crowding. The array of flags (you may use integers to save typing) is converted to boolean values and replicated to match the number of labels. It correctly takes account of Barcharts (which have a dummy label added at the Y-axis). See also ... |