SharpPlot Tutorials > Style Examples > Stay at edge (Labels)

Stay at edge (Labels)

When axes are placed explicitly in the chart area, it is often better to have labels and captions remain where they were.

sp.Heading = "The Y-caption & Labels Stay out of the Chart";
sp.LineGraphStyle = LineGraphStyles.GridLines;
sp.XIntercept = 40;
sp.YIntercept = 100;
sp.YAxisStyle = YAxisStyles.AtEndCaption|YAxisStyles.StayAtEdge;
sp.XAxisStyle = XAxisStyles.StayAtEdge;

This style applies to both X and Y axes.

Send comments on this topic
© Dyalog Ltd 2016