WebChartControl.BoundDataChanged Event
Occurs every time a chart control generates its series points from the data source.
Namespace: DevExpress.XtraCharts.Web
Assembly: DevExpress.XtraCharts.v22.2.Web.dll
NuGet Package: DevExpress.Web.Visualization
Declaration
Event Data
The BoundDataChanged event's data class is EventArgs.
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.
Note
The following property values cannot be changed in the BoundDataChanged event handler:
Example
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;
}
}
}