Skip to content

Instantly share code, notes, and snippets.

@mathisonian
Last active August 13, 2017 08:18
Show Gist options
  • Save mathisonian/2b2d69c734ce73479cbf4a345f3b8d3d to your computer and use it in GitHub Desktop.
Save mathisonian/2b2d69c734ce73479cbf4a345f3b8d3d to your computer and use it in GitHub Desktop.

Revisions

  1. mathisonian renamed this gist Aug 13, 2017. 1 changed file with 9 additions and 2 deletions.
    11 changes: 9 additions & 2 deletions index.idl → index.md
    Original 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:

    [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} ]` /]
    ```
    [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} ]` /]
    ```
  2. mathisonian revised this gist Aug 13, 2017. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions index.idl
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@

    Using a derived variable:
    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 just put the expression directly on the chart:
    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} ]` /]

  3. mathisonian created this gist Aug 13, 2017.
    17 changes: 17 additions & 0 deletions index.idl
    Original 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} ]` /]