Skip to content

Instantly share code, notes, and snippets.

@navsing
Created January 7, 2023 19:54
Show Gist options
  • Save navsing/81833a0e067cbb29e2814dfae6828f8d to your computer and use it in GitHub Desktop.
Save navsing/81833a0e067cbb29e2814dfae6828f8d to your computer and use it in GitHub Desktop.
AreaMark(
x: .value("Year", i.year),
y: .value("Awards", i.awards)
).foregroundStyle(.blue)
.interpolationMethod(.cardinal)
//Use multiple sources to create stacked area charts - add the code below
AreaMark(
x: .value("Year", i.year),
y: .value("Awards", i.awards),
stacking: .center
).foregroundStyle(.green)
//You can apply all customization from line charts to this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment