Add example; Fix example in README
This commit is contained in:
parent
27cb9be5f5
commit
ed38f28f84
@ -20,7 +20,7 @@ run(
|
||||
Dust can do amazing things with data. To load CSV data, isolate a column and render it as a line plot in a GUI window:
|
||||
|
||||
```dust
|
||||
read("examples/assets/faithful.csv")
|
||||
read_file("examples/assets/faithful.csv")
|
||||
-> from_csv(input)
|
||||
-> rows(input)
|
||||
-> transform(input, 'input.1')
|
||||
|
6
examples/gui_rendering.ds
Normal file
6
examples/gui_rendering.ds
Normal file
@ -0,0 +1,6 @@
|
||||
# This will read a CSV file and display it as a line plot in a GUI window.
|
||||
read_file("examples/assets/faithful.csv")
|
||||
-> from_csv(input)
|
||||
-> rows(input)
|
||||
-> transform(input, 'input.1')
|
||||
-> plot(input);
|
Loading…
Reference in New Issue
Block a user