Events

ZingChart provides a rich API for controlling chart characteristics from re-rendering a plot (reload), loading new data (setseriesdata), modifying existing charts (modifyplot), zooming in on a data range (zoomto), toggling various interactive features (togglelegend), and much more.

Animation Events

animation_end

Dispatches when the animation ends.

AttributeTypeInfo

graphid

String

The ID of the graph object.

"mygraph" | 0 | 1 | ...

id

String

The ID of the zingchart object.

"mychart" | ...

animation_start

Dispatches when the animation starts.

A ZingChart Embedded Demohttps://app.zingsoft.com/demos/embed/Q7X0UN4I
AttributeTypeInfo

graphid

String

The ID of the graph object.

"mygraph" | 0 | 1 | ...

id

String

The ID of the zingchart object.

"mychart" | ...

animation_step

Dispatches on every step of the animation, for every plot/node.

A ZingChart Embedded Demohttps://app.zingsoft.com/demos/embed/231W9KUI
AttributeTypeInfo

graphid

String

The ID of the graph object.

"mygraph" | 0 | 1 | ...

id

String

The ID of the zingchart object.

"mychart" | ...

nodeindex

Numeric

The index of the node.

0 | 8 | 20 | ...

plotindex

Numeric

The index of the plot.

0 | 1 | ...

stage

Numeric

The "position" in the animation timeline. It starts from 0 and ends as 1 but for several animation methods, intermediate values can exceed 1.

0 | 0.45 | 1.04 | ...

value

Numeric

The node value.

Data Manipulation Events

modify

Dispatches when ZingChart is modified via the modify API call.

A ZingChart Embedded Demohttps://app.zingsoft.com/demos/embed/FEGGNCC7
AttributeTypeInfo

data

Object

The new configuration data.

{...}

graphid

String

The ID of the graph object.

"mygraph" | 0 | 1 | ...

id

String

The ID of the zingchart object.

"mychart" | ...

object

String

The object to modify if set in the API call.

node_add

Dispatches when the user adds a node.

A ZingChart Embedded Demohttps://app.zingsoft.com/demos/embed/R5LZL0GG
AttributeTypeInfo

graphid

String

The ID of the graph object.

"mygraph" | 0 | 1 | ...

id

String

The ID of the zingchart object.

"mychart" | ...

key

Mixed

The node's key.

nodeindex

Numeric

The index of the node.

0 | 8 | 20 | ...

plotindex

Numeric

The index of the plot.

0 | 1 | ...

text

String

The string representation of the node value.

value

Numeric

The node value.

node_remove

Dispatches when the user removes a node.

A ZingChart Embedded Demohttps://app.zingsoft.com/demos/embed/13FN93S2
AttributeTypeInfo

graphid

String

The ID of the graph object.

"mygraph" | 0 | 1 | ...

id

String

The ID of the zingchart object.

"mychart" | ...

key

Mixed

The node's key.

nodeindex

Numeric

The index of the node.

0 | 8 | 20 | ...

plotindex

Numeric

The index of the plot.

0 | 1 | ...

text

String

The string representation of the node value.

value

Numeric

The node value.

plot_add

Dispatches when a plot is added to the graph.

A ZingChart Embedded Demohttps://app.zingsoft.com/demos/embed/3WZ7WEPQ
AttributeTypeInfo

data

Object

The new configuration data.

{...}

graphid

String

The ID of the graph object.

"mygraph" | 0 | 1 | ...

id

String

The ID of the zingchart object.

"mychart" | ...

plotindex

Numeric

The index of the plot.

0 | 1 | ...

plot_modify

Dispatches when a plot is modified.

A ZingChart Embedded Demohttps://app.zingsoft.com/demos/embed/1ZUWFBM2
AttributeTypeInfo

data

Object

The new configuration data.

{...}

graphid

String

The ID of the graph object.

"mygraph" | 0 | 1 | ...

id

String

The ID of the zingchart object.

"mychart" | ...

plotindex

Numeric

The index of the plot.

0 | 1 | ...

plot_remove

Dispatches when a plot is removed.

A ZingChart Embedded Demohttps://app.zingsoft.com/demos/embed/Z0AUOZYR
AttributeTypeInfo

graphid

String

The ID of the graph object.

"mygraph" | 0 | 1 | ...

id

String

The ID of the zingchart object.

"mychart" | ...

plotindex

Numeric

The index of the plot.

0 | 1 | ...

reload

Dispatches when the chart is reloaded.

A ZingChart Embedded Demohttps://app.zingsoft.com/demos/embed/UIRHBIRE
AttributeTypeInfo

graphid

String

The ID of the graph object.

"mygraph" | 0 | 1 | ...

id

String

The ID of the zingchart object.

"mychart" | ...

setdata

Dispatches when the setdata API function is called.

A ZingChart Embedded Demohttps://app.zingsoft.com/demos/embed/HH6Y91RQ
AttributeTypeInfo

data

Object

The new configuration data.

{...}

graphid

String

The ID of the graph object.

"mygraph" | 0 | 1 | ...

id

String

The ID of the zingchart object.

"mychart" | ...

Export Events

data_export

Dispatches when the user exports the graph data.

AttributeTypeInfo

id

String

The ID of the zingchart object.

"mychart" | ...

image_save

Dispatches when the user saves an images of the graph.

AttributeTypeInfo

id

String

The ID of the zingchart object.

"mychart" | ...

print

Dispatches when the user prints the graph.

AttributeTypeInfo

id

String

The ID of the zingchart object.

"mychart" | ...

Feed Events

feed_clear

Dispatches when the feed is cleared.

AttributeTypeInfo

id

String

The ID of the zingchart object.

"mychart" | ...

feed_interval_modify

Dispatches when the feed interval is modified.

AttributeTypeInfo

id

String

The ID of the zingchart object.

"mychart" | ...

interval

Numeric

The new interval.

5 | 10 | ...

feed_start

Dispatches when the feed starts.

AttributeTypeInfo

id

String

The ID of the zingchart object.

"mychart" | ...

feed_stop

Dispatches when the feed stops.

AttributeTypeInfo

id

String

The ID of the zingchart object.

"mychart" | ...

Global Events

beforedestroy

Dispatches before the ZingChart chart object is destroyed.

A ZingChart Embedded Demohttps://app.zingsoft.com/demos/embed/TAY6GZE6
AttributeTypeInfo

id

String

The ID of the zingchart object.

"mychart" | ...

loader

Object

The loader object, containing other possibly valuable data.

{...}

click

Dispatches when the user clicks anywhere on the graph.

A ZingChart Embedded Demohttps://app.zingsoft.com/demos/embed/LMCHY10V
AttributeTypeInfo

graphid

String

The ID of the graph object.

"mygraph" | 0 | 1 | ...

id

String

The ID of the zingchart object.

"mychart" | ...

plotarea

Boolean

Specifies if the click was fired inside the plotarea object.

true | false | 1 | 0

target

String

The type of the graph object being clicked.

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

targetid

String

The id of the DOM element being clicked.

"elementid" | ...

touch

Boolean

Specifies if the event fired on a touch device.

true | false | 1 | 0

x

Numeric

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

230 | 140 | ...

y

Numeric

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.

A ZingChart Embedded Demohttps://app.zingsoft.com/demos/embed/26DZXF4G
AttributeTypeInfo

height

Numeric

The height of the zingchart object.

400 | 300 | ...

id

String

The ID of the zingchart object.

"mychart" | ...

output

String

The render output of the zingchart object.

"svg" | "canvas" | "vml"

width

Numeric

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.

A ZingChart Embedded Demohttps://app.zingsoft.com/demos/embed/UQ0XS15T
AttributeTypeInfo

height

Numeric

The height of the zingchart object.

400 | 300 | ...

id

String

The ID of the zingchart object.

"mychart" | ...

output

String

The render output of the zingchart object.

"svg" | "canvas" | "vml"

width

Numeric

The width of the zingchart object.

400 | 300 | ...

dataready

Dispatches when the data is ready to be parsed.

A ZingChart Embedded Demohttps://app.zingsoft.com/demos/embed/SRB0YXUB
AttributeTypeInfo

height

Numeric

The height of the zingchart object.

400 | 300 | ...

id

String

The ID of the zingchart object.

"mychart" | ...

output

String

The render output of the zingchart object.

"svg" | "canvas" | "vml"

width

Numeric

The width of the zingchart object.

400 | 300 | ...

destroy

Dispatches after object is destroyed.

A ZingChart Embedded Demohttps://app.zingsoft.com/demos/embed/TAY6GZE6
AttributeTypeInfo

id

String

The ID of the zingchart object.

"mychart" | ...

guide_mousemove

Dispatches when the guide position changes.

A ZingChart Embedded Demohttps://app.zingsoft.com/demos/embed/HWCEJ7DI
AttributeTypeInfo

graphid

String

The ID of the graph object.

"mygraph" | 0 | 1 | ...

id

String

The ID of the zingchart object.

"mychart" | ...

items

Array

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.

A ZingChart Embedded Demohttps://app.zingsoft.com/demos/embed/VBZMN18F

AttributeTypeInfo

height

Numeric

The height of the zingchart object.

400 | 300 | ...

id

String

The ID of the zingchart object.

"mychart" | ...

output

String

The render output of the zingchart object.

"svg" | "canvas" | "vml"

width

Numeric

The width of the zingchart object.

400 | 300 | ...

menu_item_click

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

A ZingChart Embedded Demohttps://app.zingsoft.com/demos/embed/L7QDA9MT
AttributeTypeInfo

ev

Object

The event object, containing other possibly valuable data.

{...}

graphid

String

The ID of the graph object.

"mygraph" | 0 | 1 | ...

height

Numeric

The height of the zingchart object.

400 | 300 | ...

id

String

The ID of the zingchart object.

"mychart" | ...

menuitemid

String

The id of the menu item being clicked.

"viewaspng" | ...

targetid

String

The id of the DOM element being clicked.

"elementid" | ...

width

Numeric

The width of the zingchart object.

400 | 300 | ...

x

Numeric

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

230 | 140 | ...

y

Numeric

The height of the zingchart object.

400 | 300 | ...

resize

Dispatches on resize.

A ZingChart Embedded Demohttps://app.zingsoft.com/demos/embed/RTIZ45MH
AttributeTypeInfo

height

Numeric

The height of the zingchart object.

400 | 300 | ...

id

String

The ID of the zingchart object.

"mychart" | ...

output

String

The render output of the zingchart object.

"svg" | "canvas" | "vml"

width

Numeric

The width of the zingchart object.

400 | 300 | ...

Graph Events

gcomplete

Dispatches every time each graph from the graphset is completely rendered, so, even on API calls that require chart repaint.

A ZingChart Embedded Demohttps://app.zingsoft.com/demos/embed/26ELZCWM
AttributeTypeInfo

graphid

String

The ID of the graph object.

"mygraph" | 0 | 1 | ...

height

Numeric

The height of the graph.

400 | 300 | ...

id

String

The ID of the zingchart object.

"mychart" | ...

loader

Object

Object containing graphset information.

{...} | ...

width

Numeric

The width of the graph.

400 | 300 | ...

x

Numeric

The x position of the graph.

400 | 300 | ...

y

Numeric

The y of the graph.

400 | 300 | ...

gload

Dispatches only the first time each graph from the graphset is completely rendered.

A ZingChart Embedded Demohttps://app.zingsoft.com/demos/embed/8C3O29EQ
AttributeTypeInfo

graphid

String

The ID of the graph object.

"mygraph" | 0 | 1 | ...

height

Numeric

The height of the graph.

400 | 300 | ...

id

String

The ID of the zingchart object.

"mychart" | ...

loader

Object

Object containing graphset information.

{...} | ...

width

Numeric

The width of the graph.

400 | 300 | ...

x

Numeric

The x position of the graph.

400 | 300 | ...

y

Numeric

The y of the graph.

400 | 300 | ...

History Events

history_back

Dispatches when the user backs through history.

AttributeTypeInfo

id

String

The ID of the zingchart object.

"mychart" | ...

index

Numeric

The index in history the user is at.

history_forward

Dispatches when the user goes forward through the history.

AttributeTypeInfo

id

String

The ID of the zingchart object.

"mychart" | ...

index

Numeric

The index in history the user is at.

Interactive Events

node_deselect

Dispatches when the node is no longer selected.

AttributeTypeInfo

graphid

String

The ID of the graph object.

"mygraph" | 0 | 1 | ...

id

String

The ID of the zingchart object.

"mychart" | ...

key

Numeric

The node's key.

nodeindex

Numeric

The index of the node.

0 | 8 | 20 | ...

plotindex

Numeric

The index of the plot.

0 | 1 | ...

text

String

The text that would display in the tooltip for the node.

value

Numeric

The value of the node.

node_select

Dispatches when the node is selected.

AttributeTypeInfo

graphid

String

The ID of the graph object.

"mygraph" | 0 | 1 | ...

id

String

The ID of the zingchart object.

"mychart" | ...

key

Numeric

The node's key.

nodeindex

Numeric

The index of the node.

0 | 8 | 20 | ...

plotindex

Numeric

The index of the plot.

0 | 1 | ...

text

String

The text that would display in the tooltip for the node.

value

Numeric

The value of the node.

plot_deselect

Dispatches when a plot is no longer selected.

AttributeTypeInfo

graphid

String

The ID of the graph object.

"mygraph" | 0 | 1 | ...

id

String

The ID of the zingchart object.

"mychart" | ...

plotindex

Numeric

The index of the plot.

0 | 1 | ...

plot_select

Dispatches when a plot is selected.

AttributeTypeInfo

graphid

String

The ID of the graph object.

"mygraph" | 0 | 1 | ...

id

String

The ID of the zingchart object.

"mychart" | ...

plotindex

Numeric

The index of the plot.

0 | 1 | ...

Legend Events

legend_item_click

Dispatches when a legend item is clicked.

A ZingChart Embedded Demohttps://app.zingsoft.com/demos/embed/0647492O
AttributeTypeInfo

graphid

String

The ID of the graph object.

"mygraph" | 0 | 1 | ...

id

String

The ID of the zingchart object.

"mychart" | ...

plotid

String

The id of the plot (if any).

"mylineplot" | ...

plotindex

Numeric

The index of the plot.

0 | 1 | ...

visible

Boolean

The status of the legend item before the click.

true | false | 1 | 0

xdata

Object

The collection of extra data associated with the plot via data-XXX attributes.

{...}

legend_marker_click

Dispatches when a legend marker is clicked.

A ZingChart Embedded Demohttps://app.zingsoft.com/demos/embed/1Y92Y0BQ
AttributeTypeInfo

graphid

String

The ID of the graph object.

"mygraph" | 0 | 1 | ...

id

String

The ID of the zingchart object.

"mychart" | ...

plotid

String

The id of the plot (if any).

"mylineplot" | ...

plotindex

Numeric

The index of the plot.

0 | 1 | ...

visible

Boolean

The status of the legend marker before the click.

true | false | 1 | 0

xdata

Object

The collection of extra data associated with the plot via data-XXX attributes.

{...}

Node Events

node_click

Dispatches when the user clicks a node.

A ZingChart Embedded Demohttps://app.zingsoft.com/demos/embed/1XLFCFNS
AttributeTypeInfo

ev

Object

The event object, containing other possibly valuable data.

{...}

graphid

String

The ID of the graph object.

"mygraph" | 0 | 1 | ...

id

String

The ID of the zingchart object.

"mychart" | ...

key

Mixed

The scale key of the node position.

nodeindex

Numeric

The index of the node.

0 | 8 | 20 | ...

plotid

String

The id of the plot (if any).

"mylineplot" | ...

plotindex

Numeric

The index of the plot.

0 | 1 | ...

text

String

The string representation of the node value.

value

Numeric

The node value.

node_doubleclick

Dispatches when the user double clicks a node.

A ZingChart Embedded Demohttps://app.zingsoft.com/demos/embed/EENNHL5S
AttributeTypeInfo

ev

Object

The event object, containing other possibly valuable data.

{...}

graphid

String

The ID of the graph object.

"mygraph" | 0 | 1 | ...

id

String

The ID of the zingchart object.

"mychart" | ...

key

Mixed

The scale key of the node position.

nodeindex

Numeric

The index of the node.

0 | 8 | 20 | ...

plotid

String

The id of the plot (if any).

"mylineplot" | ...

plotindex

Numeric

The index of the plot.

0 | 1 | ...

text

String

The string representation of the node value.

value

Numeric

The node value.

node_mouseout

Dispatches when the user moves out from a node.

A ZingChart Embedded Demohttps://app.zingsoft.com/demos/embed/61HLKRUJ
AttributeTypeInfo

ev

Object

The event object, containing other possibly valuable data.

{...}

graphid

String

The ID of the graph object.

"mygraph" | 0 | 1 | ...

id

String

The ID of the zingchart object.

"mychart" | ...

key

Mixed

The scale key of the node position.

nodeindex

Numeric

The index of the node.

0 | 8 | 20 | ...

plotid

String

The id of the plot (if any).

"mylineplot" | ...

plotindex

Numeric

The index of the plot.

0 | 1 | ...

text

String

The string representation of the node value.

value

Numeric

The node value.

node_mouseover

Dispatches when the user places the mouse over a node.

A ZingChart Embedded Demohttps://app.zingsoft.com/demos/embed/0QLQ8RG2
AttributeTypeInfo

ev

Object

The event object, containing other possibly valuable data.

{...}

graphid

String

The ID of the graph object.

"mygraph" | 0 | 1 | ...

id

String

The ID of the zingchart object.

"mychart" | ...

key

Mixed

The scale key of the node position.

nodeindex

Numeric

The index of the node.

0 | 8 | 20 | ...

plotid

String

The id of the plot (if any).

"mylineplot" | ...

plotindex

Numeric

The index of the plot.

0 | 1 | ...

text

String

The string representation of the node value.

value

Numeric

The node value.

node_set

Dispatches when the user sets the node.

A ZingChart Embedded Demohttps://app.zingsoft.com/demos/embed/8UPRYP7E
AttributeTypeInfo

id

String

The ID of the zingchart object.

"mychart" | ...

graphid

String

The ID of the graph object.

"mygraph" | 0 | 1 | ...

plotindex

Numeric

The index of the plot.

0 | 1 | ...

nodeindex

Numeric

The index of the node.

0 | 8 | 20 | ...

key

Mixed

The scale key of the node position.

value

Numeric

The node value.

text

String

The string representation of the node value.

Object Events

label_click

Dispatches when the user clicks on a label.

A ZingChart Embedded Demohttps://app.zingsoft.com/demos/embed/YG71VL8A
AttributeTypeInfo

ev

Object

The event object, containing other possibly valuable data.

{...}

graphid

String

The ID of the graph object.

"mygraph" | 0 | 1 | ...

id

String

The ID of the zingchart object.

"mychart" | ...

labelid

String

The id of the label (if any).

"mylabel" | ...

labelindex

Numeric

The index of the label in the labels collection.

0 | 1 | ...

label_mousedown

Dispatches when the user clicks the mouse down on a label.

A ZingChart Embedded Demohttps://app.zingsoft.com/demos/embed/5GUGVDD1
AttributeTypeInfo

ev

Object

The event object, containing other possibly valuable data.

{...}

graphid

String

The ID of the graph object.

"mygraph" | 0 | 1 | ...

id

String

The ID of the zingchart object.

"mychart" | ...

labelid

String

The id of the label (if any).

"mylabel" | ...

labelindex

Numeric

The index of the label in the labels collection.

0 | 1 | ...

label_mouseout

Dispatches when the user moves the mouse away from a label.

A ZingChart Embedded Demohttps://app.zingsoft.com/demos/embed/ZG34YX83
AttributeTypeInfo

ev

Object

The event object, containing other possibly valuable data.

{...}

graphid

String

The ID of the graph object.

"mygraph" | 0 | 1 | ...

id

String

The ID of the zingchart object.

"mychart" | ...

labelid

String

The id of the label (if any).

"mylabel" | ...

labelindex

Numeric

The index of the label in the labels collection.

0 | 1 | ...

label_mouseover

Dispatches when the user places the mouse over a label.

A ZingChart Embedded Demohttps://app.zingsoft.com/demos/embed/GC988FT7
AttributeTypeInfo

ev

Object

The event object, containing other possibly valuable data.

{...}

graphid

String

The ID of the graph object.

"mygraph" | 0 | 1 | ...

id

String

The ID of the zingchart object.

"mychart" | ...

labelid

String

The id of the label (if any).

"mylabel" | ...

labelindex

Numeric

The index of the label in the labels collection.

0 | 1 | ...

label_mouseup

Dispatches when the user clicks the mouse up on a label.

A ZingChart Embedded Demohttps://app.zingsoft.com/demos/embed/PCRA83PP
AttributeTypeInfo

ev

Object

The event object, containing other possibly valuable data.

{...}

graphid

String

The ID of the graph object.

"mygraph" | 0 | 1 | ...

id

String

The ID of the zingchart object.

"mychart" | ...

labelid

String

The id of the label (if any).

"mylabel" | ...

labelindex

Numeric

The index of the label in the labels collection.

0 | 1 | ...

legend_marker_click

Dispatches when the user clicks on a legend marker.

AttributeTypeInfo

ev

Object

The event object, containing other possibly valuable data.

{...}

graphid

String

The ID of the graph object.

"mygraph" | 0 | 1 | ...

id

String

The ID of the zingchart object.

"mychart" | ...

shapeid

String

The id of the shape (if any).

"myshape" | ...

shapeindex

Numeric

The index of the shape in the shapes collection.

0 | 1 | ...

shape_click

Dispatches when the user clicks on a shape.

A ZingChart Embedded Demohttps://app.zingsoft.com/demos/embed/WFAGWXG2
AttributeTypeInfo

ev

Object

The event object, containing other possibly valuable data.

{...}

graphid

String

The ID of the graph object.

"mygraph" | 0 | 1 | ...

id

String

The ID of the zingchart object.

"mychart" | ...

shapeid

String

The id of the shape (if any).

"myshape" | ...

shapeindex

Numeric

The index of the shape in the shapes collection.

0 | 1 | ...

shape_mousedown

Dispatches when the user clicks down on a shape.

A ZingChart Embedded Demohttps://app.zingsoft.com/demos/embed/PQJI1M3F
AttributeTypeInfo

ev

Object

The event object, containing other possibly valuable data.

{...}

graphid

String

The ID of the graph object.

"mygraph" | 0 | 1 | ...

id

String

The ID of the zingchart object.

"mychart" | ...

shapeid

String

The id of the shape (if any).

"myshape" | ...

shapeindex

Numeric

The index of the shape in the shapes collection.

0 | 1 | ...

shape_mouseout

Dispatches when the user moves the mouse away from a shape.

A ZingChart Embedded Demohttps://app.zingsoft.com/demos/embed/0B0V96AE
AttributeTypeInfo

ev

Object

The event object, containing other possibly valuable data.

{...}

graphid

String

The ID of the graph object.

"mygraph" | 0 | 1 | ...

id

String

The ID of the zingchart object.

"mychart" | ...

shapeid

String

The id of the shape (if any).

"myshape" | ...

shapeindex

Numeric

The index of the shape in the shapes collection.

0 | 1 | ...

shape_mouseover

Dispatches when the user places the mouse over a shape.

A ZingChart Embedded Demohttps://app.zingsoft.com/demos/embed/0B0V96AE
AttributeTypeInfo

ev

Object

The event object, containing other possibly valuable data.

{...}

graphid

String

The ID of the graph object.

"mygraph" | 0 | 1 | ...

id

String

The ID of the zingchart object.

"mychart" | ...

shapeid

String

The id of the shape (if any).

"myshape" | ...

shapeindex

Numeric

The index of the shape in the shapes collection.

0 | 1 | ...

shape_mouseup

Dispatches when the user clicks up on a shape.

A ZingChart Embedded Demohttps://app.zingsoft.com/demos/embed/BT0XVE7O
AttributeTypeInfo

ev

Object

The event object, containing other possibly valuable data.

{...}

graphid

String

The ID of the graph object.

"mygraph" | 0 | 1 | ...

id

String

The ID of the zingchart object.

"mychart" | ...

shapeid

String

The id of the shape (if any).

"myshape" | ...

shapeindex

Numeric

The index of the shape in the shapes collection.

0 | 1 | ...

Plot Events

plot_add

Dispatches when a plot is added to the graph.

A ZingChart Embedded Demohttps://app.zingsoft.com/demos/embed/3WZ7WEPQ
AttributeTypeInfo

data

Object

The new configuration data.

{...}

graphid

String

The ID of the graph object.

"mygraph" | 0 | 1 | ...

id

String

The ID of the zingchart object.

"mychart" | ...

plotindex

Numeric

The index of the plot.

0 | 1 | ...

plot_click

Dispatches when the user clicks a plot.

A ZingChart Embedded Demohttps://app.zingsoft.com/demos/embed/0ZMDF553
AttributeTypeInfo

ev

Object

The event object, containing other possibly valuable data.

{...}

graphid

String

The ID of the graph object.

"mygraph" | 0 | 1 | ...

id

String

The ID of the zingchart object.

"mychart" | ...

plotid

String

The id of the plot (if any).

"mylineplot" | ...

plotindex

Numeric

The index of the plot.

0 | 1 | ...

plot_doubleclick

Dispatches when the user double clicks a plot.

A ZingChart Embedded Demohttps://app.zingsoft.com/demos/embed/ZEGY5UJ0
AttributeTypeInfo

ev

Object

The event object, containing other possibly valuable data.

{...}

graphid

String

The ID of the graph object.

"mygraph" | 0 | 1 | ...

id

String

The ID of the zingchart object.

"mychart" | ...

plotid

String

The id of the plot (if any).

"mylineplot" | ...

plotindex

Numeric

The index of the plot.

0 | 1 | ...

plot_modify

Dispatches when a plot is modified.

A ZingChart Embedded Demohttps://app.zingsoft.com/demos/embed/1ZUWFBM2
AttributeTypeInfo

data

Object

The new configuration data.

{...}

graphid

String

The ID of the graph object.

"mygraph" | 0 | 1 | ...

id

String

The ID of the zingchart object.

"mychart" | ...

plotindex

Numeric

The index of the plot.

0 | 1 | ...

plot_mouseout

Dispatches when the user moves out from a plot.

A ZingChart Embedded Demohttps://app.zingsoft.com/demos/embed/3TJFSF5M
AttributeTypeInfo

ev

Object

The event object, containing other possibly valuable data.

{...}

graphid

String

The ID of the graph object.

"mygraph" | 0 | 1 | ...

id

String

The ID of the zingchart object.

"mychart" | ...

plotid

String

The id of the plot (if any).

"mylineplot" | ...

plotindex

Numeric

The index of the plot.

0 | 1 | ...

plot_mouseover

Dispatches when the user places the mouse over a plot.

A ZingChart Embedded Demohttps://app.zingsoft.com/demos/embed/J04BWCW9
AttributeTypeInfo

ev

Object

The event object, containing other possibly valuable data.

{...}

graphid

String

The ID of the graph object.

"mygraph" | 0 | 1 | ...

id

String

The ID of the zingchart object.

"mychart" | ...

plotid

String

The id of the plot (if any).

"mylineplot" | ...

plotindex

Numeric

The index of the plot.

0 | 1 | ...

plot_remove

Dispatches when a plot is removed.

A ZingChart Embedded Demohttps://app.zingsoft.com/demos/embed/Z0AUOZYR
AttributeTypeInfo

graphid

String

The ID of the graph object.

"mygraph" | 0 | 1 | ...

id

String

The ID of the zingchart object.

"mychart" | ...

plotindex

Numeric

The index of the plot.

0 | 1 | ...

Toggle Events

about_hide

Dispatches when the About Screen is closed.

AttributeTypeInfo

id

String

The ID of the zingchart object.

"mychart" | ...

about_show

Dispatches when the About Screen is displayed.

AttributeTypeInfo

id

String

The ID of the zingchart object.

"mychart" | ...

bugreport_hide

Dispatches when the Report Bug Screen is closed.

AttributeTypeInfo

id

String

The ID of the zingchart object.

"mychart" | ...

bugreport_show

Dispatches when the Report Bug Screen is displayed.

AttributeTypeInfo

id

String

The ID of the zingchart object.

"mychart" | ...

dimension_change

Dispatches when the dimension is toggled between 2D and 3D.

AttributeTypeInfo

dimension

String

The new dimension.

"2d" | "3d"

id

String

The ID of the zingchart object.

"mychart" | ...

type

String

The new graph type.

legend_hide

Dispatches when the legend is hidden.

AttributeTypeInfo

id

String

The ID of the zingchart object.

"mychart" | ...

legend_maximize

Dispatches when the legend is maximized.

AttributeTypeInfo

id

String

The ID of the zingchart object.

"mychart" | ...

legend_minimize

Dispatches when the legend is minimized.

AttributeTypeInfo

id

String

The ID of the zingchart object.

"mychart" | ...

legend_show

Dispatches when the legend is displayed.

AttributeTypeInfo

id

String

The ID of the zingchart object.

"mychart" | ...

lens_hide

Dispatches when the lens is hidden.

AttributeTypeInfo

id

String

The ID of the zingchart object.

"mychart" | ...

lens_show

Dispatches when the lens is displayed.

AttributeTypeInfo

id

String

The ID of the zingchart object.

"mychart" | ...

plot_hide

Dispatches when a plot is hidden.

AttributeTypeInfo

graphid

String

The ID of the graph object.

"mygraph" | 0 | 1 | ...

id

String

The ID of the zingchart object.

"mychart" | ...

plotindex

Numeric

The index of the plot.

0 | 1 | ...

visible

Boolean

Specifies if the plot is visible or hidden.

true | false | 1 | 0

plot_show

Dispatches when a plot is shown after being hidden.

AttributeTypeInfo

graphid

String

The ID of the graph object.

"mygraph" | 0 | 1 | ...

id

String

The ID of the zingchart object.

"mychart" | ...

plotindex

Numeric

The index of the plot.

0 | 1 | ...

visible

Boolean

Specifies if the plot is visible or hidden.

true | false | 1 | 0

source_hide

Dispatches when the Source Screen is hidden.

AttributeTypeInfo

id

String

The ID of the zingchart object.

"mychart" | ...

source_show

Dispatches when the source is displayed.

AttributeTypeInfo

id

String

The ID of the zingchart object.

"mychart" | ...

Zoom Events

zoom

Dispatches when a zoom event occurs.

A ZingChart Embedded Demohttps://app.zingsoft.com/demos/embed/GM8MDKNP
AttributeTypeInfo

graphid

String

The ID of the graph object.

"mygraph" | 0 | 1 | ...

id

String

The ID of the zingchart object.

"mychart" | ...

action

String

The type of zoom action.

"zoomin" | "zoomout" | "viewall"

kmax

Numeric

Specifies the key scale value corresponding to the end position on x axis.

5 | 10 | ...

kmin

Numeric

Specifies the key scale value corresponding to the start position on x axis.

5 | 10 | ...

xmax

Numeric

Specifies the end position on x axis.

5 | 10 | ...

xmin

Numeric

Specifies the start position on x axis.

5 | 10 | ...

ymax

Numeric

Specifies the end position on y axis.

5 | 10 | ...

ymin

Numeric

Specifies the start position on y axis.

5 | 10 | ...

zoomx

Boolean

Specifies if the zoom was performed on x axis.

true | false | 1 | 0

zoomy

Boolean

Specifies if the zoom was performed on y axis.

true | false | 1 | 0

On This Page