clean plots
This commit is contained in:
parent
845a906f96
commit
980c454d3c
3 changed files with 5 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue