Skip to content

Commit d32ca8c

Browse files
Update README.md
1 parent a40c230 commit d32ca8c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,11 @@ Inspired by the Grammar of Graphics (as seen in `ggplot2` and `Altair`), Charton
120120
// Create individual layers
121121
let line = chart!(height, weight)?
122122
.mark_line()?
123-
.encode((x("height"), y("weight")))?;
123+
.encode((alt::x("height"), alt::y("weight")))?;
124124

125125
let point = chart!(height, weight)?
126126
.mark_point()?
127-
.encode((x("height"), y("weight")))?;
127+
.encode((alt::x("height"), alt::y("weight")))?;
128128

129129
// Combine into a composite chart
130130
line.and(point).save("layered.svg")?;

0 commit comments

Comments
 (0)