plots docs, mention color prop

This commit is contained in:
jean-emmanuel 2016-03-22 17:56:47 +01:00
parent 49e7ad8572
commit fa00ed53ba
2 changed files with 17 additions and 2 deletions

View file

@ -1,8 +1,19 @@
# Plots
Plots are tools that display other widgets' state or incomming osc messages.
Plots are tools that display other widgets' state or incomming osc messages. They are not sensitive to mouse and touch interactions.
## led
```js
type:'led',
range:x:{"min":0,"max":1} // [object] minimum and maximum values for X and Y axis
logScale: false, // [bool] use logarithmic scale
```
## plot
The plot receives an array of [x,y] coordinates and draws them on a chart with linear or logarithmic interpolation.
```js
type:'plot',
points:[], // [string|array]
@ -20,9 +31,12 @@ logScaleY: false // [bool] use logarithmic scale for y axis (log10)
```
## visualizer
The visualizer displays the evolution in time of a received value (through osc) *or* another widget's value.
```js
type:'visualizer',
curve:'', // [string] widget id (its value will be displayed)
widgetId:'', // [string] widget id (its value will be displayed instead of the incoming osc)
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)