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

A ZingChart Embedded Demohttps://app.zingsoft.com/demos/embed/api-zoomin-zoomout-viewall

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 | ...

zoomx

Boolean

Sets if the graph will zoom on the x scale.

true | false | 1 | 0

zoomy

Boolean

Sets if the graph will zoom on the y scale.

true | false | 1 | 0

zoomout

A ZingChart Embedded Demohttps://app.zingsoft.com/demos/embed/api-zoomin-zoomout-viewall

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 | ...

zoomx

Boolean

Sets if the graph will zoom on the x scale.

true | false | 1 | 0

zoomy

Boolean

Sets if the graph will zoom on the y scale.

true | false | 1 | 0

zoomto

A ZingChart Embedded Demohttps://app.zingsoft.com/demos/embed/api-zoomto

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 | ...

kmin

Numeric

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

1417651200000 | 1417661200000 | ...

kmax

Numeric

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

1417651200000 | 1417661200000 | ...

xmax

Numeric

The max x position to zoom to.

5 | 10 | ...

xmin

Numeric

The min x position to zoom to.

5 | 10 | ...

ymax

Numeric

The max y position to zoom to.

5 | 10 | ...

ymin

Numeric

The min y position to zoom to.

5 | 10 | ...

zoomtovalues

A ZingChart Embedded Demohttps://app.zingsoft.com/demos/embed/api-zoomtovalues

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 | ...

xmax

Mixed

The max x value to zoom to.

40 | "Apr" | ...

xmin

Mixed

The min x value to zoom to.

10 | "Jan" | ...

ymax

Numeric

The max y position to zoom to.

5 | 10 | ...

ymin

Numeric

The min y position to zoom to.

5 | 10 | ...