Global

Global Events

beforedestroy

Dispatches before the ZingChart chart object is destroyed.

AttributeTypeInfo
idString

The ID of the zingchart object.

"mychart" | ...

loaderObject

The loader object, containing other possibly valuable data.

{...}

click

Dispatches when the user clicks anywhere on the graph.

https://app.zingsoft.com/demos/embed/LMCHY10V
https://app.zingsoft.com/demos/embed/LMCHY10V
AttributeTypeInfo
graphidString

The ID of the graph object.

"mygraph" | 0 | 1 | ...

idString

The ID of the zingchart object.

"mychart" | ...

plotareaBoolean

Specifies if the click was fired inside the plotarea object.

true | false | 1 | 0

targetString

The type of the graph object being clicked.

"none" | "node" | "legend-item" | "menu-item" | "preview" | "shape" | "label"

targetidString

The id of the DOM element being clicked.

"elementid" | ...

touchBoolean

Specifies if the event fired on a touch device.

true | false | 1 | 0

xNumeric

The x position of the click relative to the chart position.

230 | 140 | ...

yNumeric

The y position of the click relative to the chart position.

230 | 140 | ...

complete

Dispatches every time a graphset is completely rendered, so, even on API calls that require chart repaint.

https://app.zingsoft.com/demos/embed/26DZXF4G
https://app.zingsoft.com/demos/embed/26DZXF4G
AttributeTypeInfo
heightNumeric

The height of the zingchart object.

400 | 300 | ...

idString

The ID of the zingchart object.

"mychart" | ...

outputString

The render output of the zingchart object.

"svg" | "canvas" | "vml"

widthNumeric

The width of the zingchart object.

400 | 300 | ...

dataparse

Dispatches when the data is available for the chart, prior to parsing routines. Useful for changing/adding elements into the data.

https://app.zingsoft.com/demos/embed/UQ0XS15T
https://app.zingsoft.com/demos/embed/UQ0XS15T
AttributeTypeInfo
heightNumeric

The height of the zingchart object.

400 | 300 | ...

idString

The ID of the zingchart object.

"mychart" | ...

outputString

The render output of the zingchart object.

"svg" | "canvas" | "vml"

widthNumeric

The width of the zingchart object.

400 | 300 | ...

dataready

Dispatches when the data is ready to be parsed.

https://app.zingsoft.com/demos/embed/SRB0YXUB
https://app.zingsoft.com/demos/embed/SRB0YXUB
AttributeTypeInfo
heightNumeric

The height of the zingchart object.

400 | 300 | ...

idString

The ID of the zingchart object.

"mychart" | ...

outputString

The render output of the zingchart object.

"svg" | "canvas" | "vml"

widthNumeric

The width of the zingchart object.

400 | 300 | ...

destroy

Dispatches after object is destroyed.

https://app.zingsoft.com/demos/embed/TAY6GZE6
https://app.zingsoft.com/demos/embed/TAY6GZE6
AttributeTypeInfo
idString

The ID of the zingchart object.

"mychart" | ...

guide_mousemove

Dispatches when the guide position changes.

https://app.zingsoft.com/demos/embed/HWCEJ7DI
https://app.zingsoft.com/demos/embed/HWCEJ7DI
AttributeTypeInfo
graphidString

The ID of the graph object.

"mygraph" | 0 | 1 | ...

idString

The ID of the zingchart object.

"mychart" | ...

itemsArray

Array of objects representing plot and node information for the guide position with the following keys: plotindex, nodeindex, value, text.

[...]

load

Dispatches only the first time the graphset is completely rendered. Subsequent chart reloads will not fire this event.

https://app.zingsoft.com/demos/embed/VBZMN18F
https://app.zingsoft.com/demos/embed/VBZMN18F
AttributeTypeInfo
heightNumeric

The height of the zingchart object.

400 | 300 | ...

idString

The ID of the zingchart object.

"mychart" | ...

outputString

The render output of the zingchart object.

"svg" | "canvas" | "vml"

widthNumeric

The width of the zingchart object.

400 | 300 | ...

menu_item_click

Dispatches when a menu item is clicked from within the context-menu.

https://app.zingsoft.com/demos/embed/L7QDA9MT
https://app.zingsoft.com/demos/embed/L7QDA9MT
AttributeTypeInfo
evObject

The event object, containing other possibly valuable data.

{...}

graphidString

The ID of the graph object.

"mygraph" | 0 | 1 | ...

heightNumeric

The height of the zingchart object.

400 | 300 | ...

idString

The ID of the zingchart object.

"mychart" | ...

menuitemidString

The id of the menu item being clicked.

"viewaspng" | ...

targetidString

The id of the DOM element being clicked.

"elementid" | ...

widthNumeric

The width of the zingchart object.

400 | 300 | ...

xNumeric

The x position of the click relative to the chart position.

230 | 140 | ...

yNumeric

The height of the zingchart object.

400 | 300 | ...

resize

Dispatches on resize.

https://app.zingsoft.com/demos/embed/RTIZ45MH
https://app.zingsoft.com/demos/embed/RTIZ45MH
AttributeTypeInfo
heightNumeric

The height of the zingchart object.

400 | 300 | ...

idString

The ID of the zingchart object.

"mychart" | ...

outputString

The render output of the zingchart object.

"svg" | "canvas" | "vml"

widthNumeric

The width of the zingchart object.

400 | 300 | ...