ChartDirector 5.1 (.NET Edition)

JsChartViewer.ViewPortChanged


Description

This event occurs when the view port is changed through mouse actions (see JsChartViewer.setMouseUsage).

Use JsChartViewer.attachHandler with the event id "ViewPortChanged" to attach a handler to this event.

If the browser supports partial chart update (that is, AJAX request - see JsChartViewer.canSupportPartialUpdate), the JsChartViewer.partialUpdate method can be attached to this event, so a partial chart update will occur when the view port changes.

For example, the following is some typical code used after the web page is loaded (typically in the onLoad event handler of the <BODY> tag).

// Use partial chart update if browser supports it.
if (JsChartViewer.canSupportPartialUpdate())
    viewer.attachHandler("ViewPortChanged", viewer.partialUpdate);