/** * ----------------------------------------------------------------------------- * @package smartVISU * @author Martin Gleiß * @copyright 2012 - 2015 * @license GPL [http://www.gnu.de] * ----------------------------------------------------------------------------- */ {% extends "widget_plot.html" %} {% block example %}
Example
{% filter trim|escape|nl2br %}{% verbatim %} {{ plot.gauge('', 'bath.plot.temp', 10, 30, 'temp', 'Temperature', 'solid-half', [30,50,70,90], ['#0DE0EC','#55BF3B','#DDDF0D','#DF5353']) }} {{ plot.gauge('', 'bath.plot.temp', 10, 30, 'temp', 'Temperature', 'solid-cshape', [30,50,70,90], ['#0DE0EC','#55BF3B','#DDDF0D','#DF5353']) }} {{ plot.gauge('', 'bath.plot.temp', 10, 30, 'temp', 'Temperature', 'solid-circle', [30,50,70,90], ['#0DE0EC','#55BF3B','#DDDF0D','#DF5353']) }} {{ plot.gauge('', 'bath.plot.temp', 10, 30, 'temp', 'Temperature', 'speedometer', [40,60,80,100], ['#0DE0EC','#55BF3B','#DDDF0D','#DF5353']) }} {{ plot.gauge('', 'bath.plot.temp', 10, 30, 'temp', 'Temperature', 'scale', [40,60,80,100], ['#0DE0EC','#55BF3B','#DDDF0D','#DF5353']) }} {{ plot.gauge('', 'bath.plot.temp', 10, 30, '', '', 'vumeter', [70,100], ['','#C02316']) }} {% endverbatim %}{% endfilter %}
Use the slider to control the temperature {{ basic.slider('s1', 'bath.plot.temp', 10, 30, 1) }}

solid

{{ plot.gauge('', 'bath.plot.temp', 10, 30, 'temp', 'Temperature', 'solid-half', [30,50,70,90], ['#0DE0EC','#55BF3B','#DDDF0D','#DF5353']) }} {{ plot.gauge('', 'bath.plot.temp', 10, 30, 'temp', 'Temperature', 'solid-cshape', [30,50,70,90], ['#0DE0EC','#55BF3B','#DDDF0D','#DF5353']) }} {{ plot.gauge('', 'bath.plot.temp', 10, 30, 'temp', 'Temperature', 'solid-circle', [30,50,70,90], ['#0DE0EC','#55BF3B','#DDDF0D','#DF5353']) }}

needle

{{ plot.gauge('', 'bath.plot.temp', 10, 30, 'temp', 'Temperature', 'speedometer', [40,60,80,100], ['#0DE0EC','#55BF3B','#DDDF0D','#DF5353']) }} {{ plot.gauge('', 'bath.plot.temp', 10, 30, 'temp', 'Temperature', 'scale', [40,60,80,100], ['#0DE0EC','#55BF3B','#DDDF0D','#DF5353']) }} {{ plot.gauge('', 'bath.plot.temp', 10, 30, '', '', 'vumeter', [70,100], ['','#C02316']) }}
{% endblock %}