Error Bar Chart in ASP.NET MVC Charts
18 Nov 20181 minute to read
Error Bar
Error bars are graphical representations of the variability of data and are used on graphs to indicate the error or uncertainty in a reported measurement.
To render error bars for the series in your chart, you need to follow a few steps to configure it correctly. Here’s a concise guide on how to do this:
Set visibility: Set the visible property to true for the error bars to be displayed.
Customizing error bar
To customize the error bar type, set the error bar Type to Custom, and then change the horizontal or vertical positive and negative error values for the error bar.
Error bar mode
The error bar mode is used to define whether the error bar line is drawn horizontally, vertically or on both sides. To change the error bar mode, use the Mode option.
Error bar direction
To change the direction of the error bars to plus, minus, or both sides, use the Direction property.
Customizing error bar cap
To customize the length, width, opacity, and fill color of the error bar caps, you can use the ErrorBarCap property.
Customizing error bar color
To customize the error bar color for individual errors, use the ErrorBarColorMapping property. You can also customize the vertical error, horizontal error, horizontal negative and positive error, and vertical negative and positive error for an individual point using the VerticalError, HorizontalError, HorizontalNegativeError, HorizontalPositiveError, VerticalNegativeError, and VerticalPositiveError properties.
Events
Series render
The SeriesRender event allows you to customize series properties, such as data, fill, and name, before they are rendered on the chart.
Point render
The PointRender event allows you to customize each data point before it is rendered on the chart.