| ||
Introducing SharpPlot Your First Chart Recent Updates Sample Charts Tutorials General Tutorials Chart Tutorials SharpPlot Class Methods 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 > Properties > IndexOrigin Property SharpPlot.IndexOrigin PropertyThe Index origin property allows you to set the ‘index origin’ of a generated x-scale. This is 1 by default, but could be 0 which is good for surface filled charts as the auto-ranging of the axis often forces it to include 0, and the surface looks ugly when it does not fill right back to the y-axis. public double IndexOrigin {get; set;} Examplesp.IndexOrigin = 0; Although 1 and 0 are the normal values, IndexOrigin can take any integer (such as 36967 which is the OLE date value for 17th March, 2001) for date labelled axes where the data is daily from a given start date. To have the data-points set midway between ticks, use a value of 0.5 here and set the tick interval on the X-axis to 1. See also ...SharpPlot Members | SetXTickMarks Method |