Menu

Thermometer

lenysoft

Thermometer

Represents data in Thermometer way.
Can customize range min and max.

var l=new Thermometer();

l.set( {
        left :          40,
        top  :          40,
        width:          90,
        height:         150,
        min  :          35,
        max  :          45,
        intervals:      10,
        current:        37,
        animate:        true
        });

l.setLabelStyle({
        mask :          function (val){ return val;} ,
        font :          '11px Arial',
        color:          'grey'
    });

l.setCurrentStyle({
        mask :          function (val){ return "current\n"+val;} ,
        font :          'bold 14px Arial',
        color:          'grey'
    });

l.draw(canvasId);

MongoDB Logo MongoDB