Can I tell if the Reset Zoom button was selected?
I am using a chart with zoom enabled.
At render, I preset the actual zoom min and max as
axes: [
{
type: 'dateTime',
location: 'bottom',
zoomEnabled: true,
minimum: $scope.horizon.startDate,
maximum: $scope.horizon.endDate,
visibleMinimum: $scope.horizon.zoomStart,
visibleMaximum: $scope.horizon.zoomEnd
}
so the chart is automatically zoomed to a predetermined horizon
Now I need to code for these two events
1 ) If the reset zoom button was selected, I want to reset the visible min and max to match the initial state of the chart
2) If the user zooms all the way out using mouse I would not want to reset the zoom visible min and max