How to have different scales for each chart of a trellis chart?

53 views
Skip to first unread message

Andrea Borruso

unread,
May 9, 2021, 7:17:08 AM5/9/21
to vega-js
Hi,
I'm trying to create my first trellis chart with vega-lite.

I have very different range in X and Y fields. How to have for every chart a range that fits itself to the minimum and maximum  values of each graph?

Thank you
2021-05-09_13h13_14.png


Andrea Borruso

unread,
May 9, 2021, 1:24:59 PM5/9/21
to vega-js

Solved, I must use

"resolve": {"scale": {"x": "independent", "y": "independent"}}
Reply all
Reply to author
Forward
0 new messages