Forum Replies Created by offwhite

Viewing 2 posts - 1 through 2 (of 2 total)
  • in reply to: Toggle Pan/Zoom in react #26766

    resorting to document.querySelectorAll('.canvasjs-chart-toolbar button')[0].click()

    but would prefer to trigger the event directly if possible.

    in reply to: Problem zooming to the end of a chart #26533

    I think it would also help the problem if you could set the viewportMaximum to greater than the last point on the chart.

    I understand that you don’t want the user to zoom to an area without data points, but I think it makes more sense for the logic to be

    viewportMinimum < last_plotted_point

    rather than

    viewportMaximum > last_plotted_point

    Then, on zoom reset, I could set the viewportMaximum to (last_plotted_point + padding)

    selecting this chart area would be trivial.

Viewing 2 posts - 1 through 2 (of 2 total)