From ed38f28f84d65bac7606e43959a7640993908a92 Mon Sep 17 00:00:00 2001 From: Jeff Date: Mon, 11 Sep 2023 15:23:13 -0400 Subject: [PATCH] Add example; Fix example in README --- README.md | 2 +- examples/gui_rendering.ds | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 examples/gui_rendering.ds diff --git a/README.md b/README.md index f5cdde6..4381bf2 100644 --- a/README.md +++ b/README.md @@ -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') diff --git a/examples/gui_rendering.ds b/examples/gui_rendering.ds new file mode 100644 index 0000000..8d7ce33 --- /dev/null +++ b/examples/gui_rendering.ds @@ -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);