Zoom

viewall

Resets the zoom on the chart.

zingchart.exec('myid', 'viewall', {
    graphid: 0
});
AttributeTypeInfo
graphid (optional)Mixed

The id/index of the graph. The default is 0.

"mygraph" | 0 | 1 | ...

zoomin

https://app.zingsoft.com/demos/embed/D92HJ11S
https://app.zingsoft.com/demos/embed/D92HJ11S

Zooms in the graph.

zingchart.exec('myid', 'zoomin', {
  graphid: 0,
  zoomx: true,
  zoomy: true
});
AttributeTypeInfo
graphid (optional)Mixed

The id/index of the graph. The default is 0.

"mygraph" | 0 | 1 | ...

zoomxBoolean

Sets if the graph will zoom on the x scale.

true | false | 1 | 0

zoomyBoolean

Sets if the graph will zoom on the y scale.

true | false | 1 | 0

zoomout

https://app.zingsoft.com/demos/embed/D92HJ11S
https://app.zingsoft.com/demos/embed/D92HJ11S

Zooms out the graph.

zingchart.exec('myid', 'zoomout', {
  graphid: 0,
  zoomx: true,
  zoomy: true
});
AttributeTypeInfo
graphid (optional)Mixed

The id/index of the graph. The default is 0.

"mygraph" | 0 | 1 | ...

zoomxBoolean

Sets if the graph will zoom on the x scale.

true | false | 1 | 0

zoomyBoolean

Sets if the graph will zoom on the y scale.

true | false | 1 | 0

zoomto

https://app.zingsoft.com/demos/embed/J2RCK6VB
https://app.zingsoft.com/demos/embed/J2RCK6VB

Zooms to a specific area in a graph.

zingchart.exec('myid', 'zoomto', {
  graphid: 0,
  xmin: 10,
  xmax: 40,
  ymin: 1500,
  ymax: 3000
});
AttributeTypeInfo
graphid (optional)Mixed

The id/index of the graph. The default is 0.

"mygraph" | 0 | 1 | ...

kminNumeric

The minimum Unix time value (in milliseconds) to zoom to.

1417651200000 | 1417661200000 | ...

kmaxNumeric

The maximum Unix time value (in milliseconds) to zoom to.

1417651200000 | 1417661200000 | ...

xmaxNumeric

The max x position to zoom to.

5 | 10 | ...

xminNumeric

The min x position to zoom to.

5 | 10 | ...

ymaxNumeric

The max y position to zoom to.

5 | 10 | ...

yminNumeric

The min y position to zoom to.

5 | 10 | ...

zoomtovalues

https://app.zingsoft.com/demos/embed/RBK38VNS
https://app.zingsoft.com/demos/embed/RBK38VNS

Zooms to a specific area in a graph specified by x scale values/labels.

zingchart.exec('myid', 'zoomtovalues', {
  graphid: 0,
  xmin: "Jan",
  xmax: "Apr",
  ymin: 1500,
  ymax: 3000
});
AttributeTypeInfo
graphid (optional)Mixed

The id/index of the graph. The default is 0.

"mygraph" | 0 | 1 | ...

xmaxMixed

The max x value to zoom to.

40 | "Apr" | ...

xminMixed

The min x value to zoom to.

10 | "Jan" | ...

ymaxNumeric

The max y position to zoom to.

5 | 10 | ...

yminNumeric

The min y position to zoom to.

5 | 10 | ...