Skip to content

xAxis range help #419

Answered by simenopsahl
simenopsahl asked this question in Q&A
Discussion options

You must be logged in to vote

I solved it
I added:

fn: >-
  $fn ({xs, vars}) => {vars.start = xs[0];vars.end = xs[xs.length-1];}

to one of my entities to store the start and end as variables.
Then I added

range: |
  $ex range = [new Date(vars.start),new Date(vars.end)]

to layout->xaxis

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by simenopsahl
Comment options

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