Skip to content

Make x axe shorter than hours_to_show #547

Answered by dbuezas
miljbee asked this question in Q&A

You must be logged in to vote

Try adding range to your xaxis:

layout:
  xaxis:
    range: $ex [Date.now()-1*365*24*60*60*1000, Date.now()]

The initial data fetch will be done based on hours_to_show, but plotly will render the specified.

Replies: 1 comment

You must be logged in to vote
0 replies
Answer selected by miljbee
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