WebChartControl.BoundDataChanged Event
Occurs every time a chart control generates its series points from the data source.
Namespace: DevExpress.XtraCharts.Web
Assembly: DevExpress.XtraCharts.v24.1.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;
}
}
}
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the BoundDataChanged event.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.