How do you make a chart with two sets of data with multiple scales?

To use multiple scales, you must define multiple scales. ZingChart defines new scale objects using the 'scale-y-n' syntax. Once you have defined a new scale, you must assign that scale to the appropriate plot in the series object.

"scale-y-2": {
  "values": "0:400:100"
},
"series" : [
  {
    // Will default to scale-x and scale-y
    "values" : [35,42,67,89,25,34,67,85]
  },
  {
  "values" : [235,342,267,389,225,334,267,385],
  "scales": "scale-x,scale-y-2"
  }
]

Heres a demo displaying how to use multiple scales on your graph.

All documentation referenced here:

http://www.zingchart.com/docs/basic-elements/configure-chart-scales/

http://www.zingchart.com/docs/json-attributes-syntax/graph-objects/scale-y/

 

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.