I have got this dataset in julia:
import Downloads
using DLMReader, VegaLite, InMemoryDatasets
data=Downloads.download("https://raw.githubusercontent.com/akshdfyehd/salary/main/ds_salaries.csv")
ds=filereader(data,emptycolname=true)
new=filter(ds,:employment_type,by= ==("FT"))
select!(new,:job_title,:salary_in_usd,:work_year)
588×4 Dataset
Row │ job_title work_year experience_level salary_in_usd
│ identity identity identity identity
│ String? Int64? String? Int64?
─────┼────────────────────────────────────────────────────────────────────────
1 │ Data Scientist 2020 MI 79833
2 │ Machine Learning Scientist 2020 SE 260000
3 │ Big Data Engineer 2020 SE 109024
4 │ Product Data Analyst 2020 MI 20000
5 │ Machine Learning Engineer 2020 SE 150000
6 │ Data Analyst 2020 EN 72000
7 │ Lead Data Scientist 2020 SE 190000
8 │ Data Scientist 2020 MI 35735
9 │ Business Data Analyst 2020 MI 135000
10 │ Lead Data Engineer 2020 SE 125000
11 │ Data Scientist 2020 EN 51321
12 │ Data Scientist 2020 MI 40481
13 │ Data Scientist 2020 EN 39916
14 │ Lead Data Analyst 2020 MI 87000
⋮ │ ⋮ ⋮ ⋮ ⋮
576 │ Data Analytics Manager 2022 SE 150260
577 │ Data Analytics Manager 2022 SE 109280
578 │ Data Scientist 2022 SE 210000
579 │ Data Analyst 2022 SE 170000
580 │ Data Scientist 2022 MI 160000
581 │ Data Scientist 2022 MI 130000
582 │ Data Analyst 2022 EN 67000
583 │ Data Analyst 2022 EN 52000
584 │ Data Engineer 2022 SE 154000
585 │ Data Engineer 2022 SE 126000
586 │ Data Analyst 2022 SE 129000
587 │ Data Analyst 2022 SE 150000
588 │ AI Scientist 2022 MI 200000
561 rows omitted
I have tried following graph with code like this:
new |> @vlplot(:bar,columns=2,wrap="experience_level:o",x={:job_title},y={"salary_in_usd",sort="-x"},color=:work_year,width=600,height=150)
Can I please have any suggestions on how to make the stack part to be side by side? any other packages will do as long as it can show good graph. Thanks in advance!