add plot exemple

This commit is contained in:
jean-emmanuel 2016-03-14 11:29:07 +01:00
parent b6e6901ee5
commit 8c09e690f5

133
examples/plot.js Normal file
View file

@ -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
}
]
}
]