Help

Upcoming database upgrades. Airtable functionality will be reduced for ~15 minutes at 06:00 UTC on Feb. 4 / 10:00 pm PT on Feb. 3. Learn more here

Vega Lite dynamically set scale.domain

Topic Labels: Vega Lite
64 0
cancel
Showing results for 
Search instead for 
Did you mean: 

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