ZingChart: What options are there for users to select time periods?

There are two ways you can allow users to select dates or time periods in a chart. The suggested way is to use HTML elements and interact with our API to get data to and from ZingChart.

  1. You can use HTML elements and our API to create this functionality relatively easy. You will leverage the API event 'zoom' to capture zoom events and use that for the values we are going to zoomTo. Outside of that event just make a couple buttons and zoom to an appropriate range when clicked on.

Example: https://app.zingsoft.com/demos/embed/LVBFUXOV

2. You can make buttons from shapes inside ZingChart so users to choose from pre-set time periods, as seen in this demo. This is not recommended way because its much easier with HTML and you have a broader range of styling.

Documentation

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us