8

I have 256 data points. When the plot first appears I'd like the x axis to be automatically zoomed to a specific range along the X axis. Is there a way? Must I punch down to D3 somehow?

1 Answer 1

15

Something like:

Plotly.plot('graph', [{
  /* some data trace */
}], {
  xaxis: {
    range: [0, 1]  // to set the xaxis range to 0 to 1
  }
});

More info in the plotly.js chart attributes reference.

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks. I feel a little silly that I couldn't figure that out.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.