Articles in this section
Category / Section

How to use Stripline in ejChart?

1 min read

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



Did you find this information helpful?
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment