From 8c09e690f5992d4946e119b90b4d527cfc505c10 Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Mon, 14 Mar 2016 11:29:07 +0100 Subject: [PATCH] add plot exemple --- examples/plot.js | 133 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 133 insertions(+) create mode 100644 examples/plot.js diff --git a/examples/plot.js b/examples/plot.js new file mode 100644 index 00000000..77ebac67 --- /dev/null +++ b/examples/plot.js @@ -0,0 +1,133 @@ +[ + { + "label": "Unnamed", + "widgets": [ + { + "type": "fader", + "id": "fader_1", + "linkId": "", + "label": "fader_1", + "unit": "", + "left": "auto", + "top": "auto", + "width": "auto", + "height": "auto", + "horizontal": false, + "css": "", + "absolute": false, + "range": { + "min": 0, + "max": 1 + }, + "logScale": false, + "precision": 2, + "path": "/fader_1", + "target": [] + }, + { + "type": "fader", + "id": "fader_2", + "linkId": "", + "label": "fader_2", + "unit": "", + "left": "auto", + "top": "auto", + "width": "auto", + "height": "auto", + "horizontal": false, + "css": "", + "absolute": false, + "range": { + "min": 0, + "max": 1 + }, + "logScale": false, + "precision": 2, + "path": "/fader_2", + "target": [] + }, + { + "type": "fader", + "id": "fader_3", + "linkId": "", + "label": "fader_3", + "unit": "", + "left": "auto", + "top": "auto", + "width": "auto", + "height": "auto", + "horizontal": false, + "css": "", + "absolute": false, + "range": { + "min": 0, + "max": 1 + }, + "logScale": false, + "precision": 2, + "path": "/fader_3", + "target": [] + }, + { + "type": "fader", + "id": "fader_4", + "linkId": "", + "label": "fader_4", + "unit": "", + "left": "auto", + "top": "auto", + "width": "auto", + "height": "auto", + "horizontal": false, + "css": "", + "absolute": false, + "range": { + "min": 0, + "max": 1 + }, + "logScale": false, + "precision": 2, + "path": "/fader_4", + "target": [] + }, + { + "type": "plot", + "id": "plot_1", + "label": "plot_1", + "left": "auto", + "top": "auto", + "width": "auto", + "height": "auto", + "css": "", + "points": [ + [ + 0, + "fader_1" + ], + [ + 0.25, + "fader_2" + ], + [ + 0.75, + "fader_3" + ], + [ + 1, + "fader_4" + ] + ], + "rangeX": { + "min": 0, + "max": 1 + }, + "rangeY": { + "min": 0, + "max": 1 + }, + "logScaleX": false, + "logScaleY": false + } + ] + } +]