Skip to content

Limit on the zoom depth and limits on the x and y axes #468

Answered by wirew0rm
AlexJagello asked this question in Q&A
Discussion options

You must be logged in to vote

This is not supported at the moment, but depending on your requirements shouldn't be too hard to implement.

There are multiple ways to influence the axes ranges:

  • interactive using the Zoomer plugin,
  • Programmatically using axis.set(min, max),
  • Using auto-ranging axes to determine the range from the datasets shown in the chart.

For the first one, you would have to extend the Zoomer plugin and check the zoom range against your limits. The second one is probably not relevant. For limiting auto-ranging you would have to extend the DefaultNumericAxis to add properties to clamp the auto ranging. You could use these axis properties of your "LimitedNumericAxis" in your "LimitiedZoomer". But as a …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by AlexJagello
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants