JavaScript

{dialog.object}jsChartResize Method

Syntax

{dialog.Object}.jsChartResize(UXJavascriptChart, width, height [, redrawMethod [, methodParameter]])

Arguments

UXJavascriptChartString

The name (i.e. Chart id) of the Javascript chart you want to resize.

widthString

The new width of the chart. Use CSS syntax. e.g. '500px'

heightString

The new height of the chart. Use CSS syntax. e.g. '500px'

redrawMethodString

You can override the default 'draw' method specified when the chart was defined. For example, if the chart was originally defined to use the 'grow' method (so that the chart is animated when it is drawn), you can override this and specify the 'draw' method (so that the chart is redrawn at its new size without animation.

methodParameterObject

If you specify an explicit redrawMethod, if the method that is specified takes a parameter, you can use this argument to supply the parameter. For example, the 'grow' method can take this parameter: {frames: 100}

Description

Resizes a Javascript chart.

Discussion

You can optionally pass in a draw method to redraw the chart without animation, or with a specified animation option.

See Also