Two charts and one preview in ZingChart
Asked Answered
G

1

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?

Grissom answered 27/7, 2015 at 4:53 Comment(0)
H
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.

Hanser answered 27/7, 2015 at 22:34 Comment(3)
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? #31608847Grissom
Hi Marium Malik, it looks like your question was addressed by another team member. Hope that helped! Thanks.Hanser
Yes, someone has replied. ThanksGrissom

© 2022 - 2024 — McMap. All rights reserved.