Reference > Properties > XAxisLength Property (ReadOnly)

SharpPlot.XAxisLength Property (ReadOnly)

Returns the calculated length of the X-axis given the current settings of page size, gutter and vertical margins.

public double XAxisLength {get;}

Example

double xl = sp.XAxisLength;

This may be useful if you want to size an image to paint the entire chart background exactly. The value (in conjunction with the matching Y-axis property) will give you the exact width and height required.


Send comments on this topic
© Dyalog Ltd 2013