WebChartControl.BoundDataChanged Event

Occurs every time a chart control generates its series points from the data source.

Namespace: DevExpress.XtraCharts.Web

Assembly: DevExpress.XtraCharts.v19.2.Web.dll

Declaration

public event BoundDataChangedEventHandler BoundDataChanged
Public Event BoundDataChanged As BoundDataChangedEventHandler

Event Data

The BoundDataChanged event handler receives an argument of the EventArgs type.

Remarks

Use the BoundDataChanged event to change a series's SeriesBase.Visible property, or to change any properties of series labels or a series view.

Examples

This example demonstrates how to access the auto-created series appearance settings at runtime.

Handle the WebChartControl.BoundDataChanged event to access an individual series' settings.

private void WebChartControl_BoundDataChanged(object sender, EventArgs e) {
    Series series = webChartControl.Series.Where(s => s.Name == "2015").FirstOrDefault() as Series;
    if(series != null) {
        SideBySideBarSeriesView view = series.View as SideBySideBarSeriesView;
        if(view != null) {
            view.Color = System.Drawing.Color.Orange;
            view.FillStyle.FillMode = FillMode.Solid;
        }
    }
}
See Also