Drawing Axis Bands
Posted by Admin - on 21 March 2014 11:19 AM

A new feature to SciChart v2.x and later is the ability to draw axis bands – a semi-transparent or opaque block of color between alternate Major GridLines. To enable this feature (it is off by default), you can set the DrawAxisBands property in code on either XAxis, or YAxis, or both.


var axis = new NumericAxis();
axis.DrawMajorBands = true;
axis.AxisBandsFill = Colors.DarkSlateGray;


<!-- Optional color, the themes provide standard colors for band fills -->
<s:NumericAxis DrawMajorBands="True" AxisBandsFill="DarkSlateGray"/>

This results in the following output. An Axis band with color DarkSlateGray is drawn between alternate major gridlines. As you zoom or pan the chart, the bands move with it.

(1 vote(s))
Not helpful


Not sure where to start? Contact us, we are happy to help!


SciChart Ltd, 16 Beaufort Court, Admirals Way, Docklands, London, E14 9XL. Email: Legal Company Number: 07430048, VAT Number: 101957725