ChartDirector 5.1 (PHP Edition)

JsChartViewer.getChart


Usage

getChart([ index ])

Description

Gets the specified chart in the Javascript Chart Model.

If the underlying chart is a MultiChart (including a FinanceChart), this method returns a chart contained within the MultiChart. The index argument can be used to select which chart to return. If the underlying chart is not a MultiChart, this method returns the chart itself, and the index argument must be 0.

Arguments

ArgumentDefaultDescription
index0The index of the chart. The index of the first chart set added to the MultiChart is 0. The index of the Nth data set added to the MultiChart is N - 1.

Return Value

The specified JsXYChart object.