Category / Section
How to add striplines to a chart?
1 min read
Striplines can be added to chart using the StripLines property of the ChartAxis class. The Interior, Width, RepeatEvery, etc., properties have to be set for the striplines to be displayed in the chart.
The following code snippet is an example for adding striplines to a chart.
<syncfusion:ChartArea> <syncfusion:ChartArea.PrimaryAxis> <syncfusion:ChartAxis syncfusion:ChartArea.ShowGridLines="False"> <syncfusion:ChartAxis.StripLines> <syncfusion:ChartStripLine Interior="BlanchedAlmond" Width="1" RepeatEvery="1"/> </syncfusion:ChartAxis.StripLines> </syncfusion:ChartAxis> </syncfusion:ChartArea.PrimaryAxis> </syncfusion:ChartArea>