We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to use Stripline in ejChart?

Platform: ASP.NET MVC |
Control: Chart

Stripline is used to highlight specific sections of a chart area. This is most commonly used in sales report, monthly report, weather report and temperature report.

Essential Chart supports to create more than one Stripline horizontally or vertically and customize its color, zOrder, text and font etc, to differentiate the chart data. Stripline can be implemented within the primary axis either horizontally or vertically for a given range.

To draw Stripline for an axis in chart area, you need to create Stripline array object for that axis and provide start and end range for Stripline. You can add text for Stripline using text property and customize font and color of the Stripline. You can refer to the following code example.


. . . . . .
. . . . . .
.PrimaryYAxis(y =>
    y.StripLine(line =>
        line.Text("High Temperature").Start(30).End(40).Color("#0D97D4").ZIndex(ChartZIndex.Behind).Add();
        line.Text("Average Temperature").Start(20).End(30).Color("#00AEFF").ZIndex(ChartZIndex.Behind).Add();
        line.Text("Low Temperature").Start(10).End(20).Color("#14B9FF").ZIndex(ChartZIndex.Behind).Add();
. . . . . .
. . . . . .

Using Stripline in ejChart



2X faster development

The ultimate ASP.NET MVC UI toolkit to boost your development speed.
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile