clean plots

This commit is contained in:
jean-emmanuel 2016-03-23 00:18:46 +01:00
parent 845a906f96
commit 980c454d3c
3 changed files with 5 additions and 3 deletions

View file

@ -33,9 +33,7 @@ module.exports.create = function(widgetData,container) {
widget.setValue = function(v,send,sync){
if (typeof v != 'number') return
led.css('opacity',mapToScale(v,[range.min,range.max],[0,1],widgetData.precision,widgetData.logScale,true))
if (sync) widget.trigger('sync',[widgetData.id,widget])
}
widget.setValue(range.min)

View file

@ -30,7 +30,6 @@ module.exports.create = function(widgetData,container) {
widget.setValue = function(v,send,sync){
widget.text(v)
if (sync) widget.trigger('sync',[widgetData.id,widget])
}
widget.setValue(label)

View file

@ -41,3 +41,8 @@ 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)
```
## text
```js
type:'text',
```