Vega Lite dynamically set scale.domain

Topic Labels: Vega Lite
745 0
Showing results for 
Search instead for 
Did you mean: 
4 - Data Explorer
4 - Data Explorer

I'm struggling to work out how to dynamically set the domain of my chart. Ideally I'd be able to do something like:

  "scale": {
    "domain": [rangeMin * 0.8, rangeMax * 1.1]

I've found this question on StackOverflow and I hit exactly the same problem. When I try to use `expr`, I get the error "Incorrect type. Expected "null". What version of Vega Lite does this integration use and is there a link to the documentation for this version?

0 Replies 0