This documentation is archived and is not being maintained.

Chart::Customize Event

Occurs just before the chart image is drawn. All chart data is available and all chart properties have been set.

Namespace:  System.Web.UI.DataVisualization.Charting
Assembly:  System.Web.DataVisualization (in System.Web.DataVisualization.dll)

public:
 event EventHandler^ Customize {
	void add (EventHandler^ value);
	void remove (EventHandler^ value);
}
<asp:Chart OnCustomize="EventHandler" />

This event has two unique features:

  • All chart data is available; that is, the series and their data points are populated. This is especially useful if data-binding is being used, because the data can be examined and the chart can be adjusted just prior to being drawn.

  • All chart properties have been set, including those properties that have been set to "Auto". In other words, "Auto" properties now store the automatically calculated values, and can be examined and modified prior to the chart being drawn. Examples are the Minimum and Maximum properties of the Axis class.

Use this event to modify or customize the chart image before it is drawn.

When changes are made to a chart area, such as to the axis scale, the chart area properties must be recalculated in order to render the chart correctly. To recalculate the chart, call the RecalculateAxesScale method after making modifications.

.NET Framework

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: