VegaLite rescale data plots

#1

Hello all, I’m using VegaLite for bar plots with the @vlplot(:bar...) command. I’m looking at a dataset that I’d like to rescale to go from 1 to 100. I tried adding in the command
julia> y={:df1, scale={domain=[0,100], nice=false}}
(where df1 is my dataframe), however this does not rescale the numbers. Are there any inbuilt commands in VegaLite I could use for this purpose instead of having to standardize the data (i.e. divide by variances and multiply by 100)?

Appreciate all help.

0 Likes