Dundas Chart for ASP.NET
ReCalc Method
See Also  Example Send comments on this topic.
Dundas.Charting.WebControl Namespace > ChartArea Class : ReCalc Method


Recalculates a chart area's properties after changes have been made to the chart in the Customize event.


Recalculates the chart area axes scale.

Syntax

Visual Basic (Declaration)  
Public Sub ReCalc() 
Visual Basic (Usage) Copy Code
Dim instance As ChartArea
 
instance.ReCalc()
C#  
public void ReCalc()

Example

The following sample customizes the X axis scale.
Visual Basic Copy Code
Imports Dundas.Charting.WebControl
...

' Customize event handler
Private Sub Chart1_Customize(ByVal chart As Chart) Handles Chart1.Customize

    ' adjust X axis scale
    Chart1.ChartAreas("Default").AxisX.Maximum += 1.0
    Chart1.ChartAreas("Default").AxisX.Minimum -= 1.0

    'now recalculate the Chart
    Chart1.ChartAreas("Default").ReCalc ()

End Sub

Remarks

When changes are made using the Customize event it is sometimes necessary to re-calculate chart area properties so that the chart is rendered correctly. For example, if an axis range is changed then the labels for that axis must be re-calculated.

Call this method after making ANY changes to a chart area (e.g. axes, etc.) using the Customize event.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

Copyright © 2001 - 2009 Dundas Data Visualization, Inc. and others.