Category / Section
How to render strip lines behind the series in Chart?
1 min read
Essential Chart supports rendering strip line behind the series by using ZIndex property of strip line. This property takes values as Behind and Over. By default, strip line appears in front of the series so the part of series overlapping with strip line is not visible. You can avoid this by setting the value of ZIndex property as Behind.
ASP
<ej:Chart ID="container" OnClientTrackAxisToolTip="crosshairLabel" runat="server"> <CommonSeriesOptions Type="Line"> <Marker Visible="true"></Marker> </CommonSeriesOptions> <PrimaryYAxis> <StripLine> <ej:StripLine Start="0" End="15" Color="red" Text="Poor performance" ZIndex="Behind" Font-FontFamily="Arial" Font-FontSize="16" Font-Color="white" /> . . . . . . . . . . . . . . . . . . . . </StripLine> </PrimaryYAxis> </ej:Chart>
The above code example renders the chart as follows.