5

I have 2 charts that have the same x-axis, I want one preview and when I scroll that, the 2 charts should scroll at the same time, is this feature available in ZingChart?

Merrily
  • 1,686
  • 10
  • 14
Sarah Mandana
  • 1,474
  • 17
  • 43

1 Answers1

10

This demo should include all the elements you need:

  • 2 charts that share an x-axis
  • A preview window that controls the two charts
  • A scroll bar that controls both charts and the preview window area

You can view the source in the demo to see that we added:

  • {graphset: [ ]} to create a collection of charts in a single container
  • zooming: true to the scaleX object for each chart
  • zoom: { shared: true } for each chart to enable sharing

  • scrollX:{ } to the second chart to add the scroll bar

  • crosshairX:{ shared: true } for shared labels when hovering over the data points

I’m on the ZingChart team. Please let me know if this demo answers your question or if there is additional clarification I can provide.

Elizabeth
  • 571
  • 3
  • 5
  • Thank you so much. This is actually what I wanted. Being on the team, can you please look at my another question and let me know if this feature is available or not? http://stackoverflow.com/questions/31608347/date-time-axis-working-as-string-not-as-proper-continuous-date-time-axis-in-zin – Sarah Mandana Jul 28 '15 at 04:23
  • Hi Marium Malik, it looks like your question was addressed by another team member. Hope that helped! Thanks. – Elizabeth Jul 29 '15 at 15:12
  • Yes, someone has replied. Thanks – Sarah Mandana Jul 30 '15 at 05:01