Last active
August 13, 2017 08:18
-
-
Save mathisonian/2b2d69c734ce73479cbf4a345f3b8d3d to your computer and use it in GitHub Desktop.
Revisions
-
mathisonian renamed this gist
Aug 13, 2017 . 1 changed file with 9 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,17 +1,24 @@ Setting `value` on a variable just defines its initial value, if you want a variable that updates derived variables are available: ``` [var name:"x" value:1 /] [derived name:"dataToBeCharted" value:`[ {x: 0, y: 0.5}, {x: 3.5, y: 0.5}, {x: 4, y: x}, {x: 4.5, y: 2}, {x: 5, y: 0.5}, {x: 8, y: 0.5} ]` /] [Range value:x min:0 max:100 step:5/] [Display value:x /] [Chart type:"line" data:`dataToBeCharted` /] ``` or you can just put the expression directly on the chart: ``` [var name:"x" value:1 /] [Range value:x min:0 max:100 step:5/] [Display value:x /] [Chart type:"line" data:`[ {x: 0, y: 0.5}, {x: 3.5, y: 0.5}, {x: 4, y: x}, {x: 4.5, y: 2}, {x: 5, y: 0.5}, {x: 8, y: 0.5} ]` /] ``` -
mathisonian revised this gist
Aug 13, 2017 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,5 @@ Setting `value` on a variable just defines its initial value, if you want a variable that updates derived variables are available: [var name:"x" value:1 /] [derived name:"dataToBeCharted" value:`[ {x: 0, y: 0.5}, {x: 3.5, y: 0.5}, {x: 4, y: x}, {x: 4.5, y: 2}, {x: 5, y: 0.5}, {x: 8, y: 0.5} ]` /] @@ -11,7 +11,7 @@ Using a derived variable: or you can just put the expression directly on the chart: [Chart type:"line" data:`[ {x: 0, y: 0.5}, {x: 3.5, y: 0.5}, {x: 4, y: x}, {x: 4.5, y: 2}, {x: 5, y: 0.5}, {x: 8, y: 0.5} ]` /] -
mathisonian created this gist
Aug 13, 2017 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,17 @@ Using a derived variable: [var name:"x" value:1 /] [derived name:"dataToBeCharted" value:`[ {x: 0, y: 0.5}, {x: 3.5, y: 0.5}, {x: 4, y: x}, {x: 4.5, y: 2}, {x: 5, y: 0.5}, {x: 8, y: 0.5} ]` /] [Range value:x min:0 max:100 step:5/] [Display value:x /] [Chart type:"line" data:`dataToBeCharted` /] or just put the expression directly on the chart: [Chart type:"line" data:`[ {x: 0, y: 0.5}, {x: 3.5, y: 0.5}, {x: 4, y: x}, {x: 4.5, y: 2}, {x: 5, y: 0.5}, {x: 8, y: 0.5} ]` /]