I have two DataChartView elements displaying with the same backing dataset, just different renderings. I have horizontal zoom enabled on both, and I'd like to have a zoom event on one to trigger a corresponding change of dimensions/range on the other.
I looked through the docs, but couldn't find any events or listeners to track this event or put the two charts in sync. I suspect I'm just not seeing it.
The Y axis (non-zoom) is numeric, the X axis is a category with a timestamp rendered as a time.
Any help?
Hello Ben,
Thank you for your post.
The DataChartView of our Android controls has a few methods to help you to synchronize the charts. These methods are setSyncChannel(string channel), setSynchronizeHorizontally(Boolean value), and setSynchronizeVertically(Boolean value). If you set the syncChannels of your two data charts to the same string value, and then set the setSynchronize methods to True, you will see that the charts remain in sync when zooming in and out and panning.
Please let me know if you have any other questions or concerns on this matter.
Sincerely,AndrewAssociate DeveloperInfragistics Inc.www.infragistics.com/support
Fantastic, that was super easy. I was trying to make it much more difficult than it needed to be!