Skip to main content

Bands

Band can be considered as a series. They have the same user interface actions as other series, but one band series contains only one band (although it could be many bands in ViewXY.Bands collection). A band is a vertical or horizontal area reaching from a margin across to another. A band can be bound to a Y axis or X axis using the Binding property. If the band is bound to Y axis, AssignYAxisIndex property must also be set. If the series is bound to X axis, ignore AssignYAxisIndex property, or set it as unassigned (-1).

If the band should be behind the line or bar series, set Behind property true. Band edges are set by ValueBegin and ValueEnd properties, which are values of the bound axis. Band can be dragged to another location with mouse. Resize the band by dragging it from the edge, which updates then the dragged edge value, ValueBegin or ValueEnd.

When Band is dragged or resized, the ValuesChanged event is raised. If an application is subscribing to this event, then event handler could be used append any additional functionality to the chart. To prevent interaction with band the AllowUserInteraction property should be disabled.

Bands A couple of bands with line series

info

To see feature demonstration as example, check Bands, Statistic analytics, Long data analysis and Zoom bar chart from our Demo.