Help

Vega Lite dynamically set scale.domain

Topic Labels: Vega Lite
697 0
cancel
Showing results for 
Search instead for 
Did you mean: 
davecook88
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:
https://stackoverflow.com/questions/66170320/dynamic-scale-domain-in-vega-lite

{
  "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