plot/visualizer docs

This commit is contained in:
jean-emmanuel 2016-03-14 21:04:51 +01:00
parent 925694d874
commit 748f64377b

View file

@ -162,12 +162,25 @@ values: { // [object] of ("label":value) pairs
### plot
```js
type:'plot',
points:[], // [array] of [x,y] coordinate arrays. x and y
// can be numbers or strings (id of widget whose value is to be displayed)
points:[], // [string|array]
// string : a single widget id, whose multiple values will be displayed,
// evenly spaced on the x-axis
// array : an array of [x,y] coordinates, which can be numbers
// or widget id strings, for example :
// [[0,0],[0.5,"some_widget_id"],["some_other_id","another_id"]]
range:{ // [object] minimum and maximum values for x and y axis
range:{ // [object] minimum and maximum values for X and Y axis
x:{"min":0,"max":1},
y:{"min":0,"max":1}
},
logScaleX: false, // [bool] use logarithmic scale for X axis (log10)
logScaleY: false // [bool] use logarithmic scale for y axis (log10)
```
### plot
```js
type:'visualizer',
curve:'', // [string] widget id (its value will be displayed)
duration:1, // [number] window size in seconds
range:{"min":0,"max":1}, // [object] minimum and maximum values the Y axis
logScale: false, // [bool] use logarithmic scale for Y axis (log10)
```