/** * ----------------------------------------------------------------------------- * @package smartVISU * @author Wolfram v. Hülsen * @copyright 2012 - 2015 * @license GPL [http://www.gnu.de] * ----------------------------------------------------------------------------- */ {% extends "widget_plot.html" %} {% block example %}
Please note

This plot uses historical data series. Available modes depend on backends/drivers and not all of them do support series at all.
As from v3.2, the 'source' parameter enables data to be loaded from list items which need to have the structure [[ timestamp, data ], ... , [ timestamp, data ]].

Examples
{% filter trim|escape|nl2br %}{% verbatim %}
PV actual Power 27.3 kWh {{ plot.sparkline('', 'bath_plot_value', 'avg', '3h', 'now', '','',10) }}
actual Consumption 23.5 kWh {{ plot.sparkline('', 'bath_plot_value2', 'avg', '3h', 'now', '','', 10) }}
{% endverbatim %}{% endfilter %}

a simple table with sparkline chart

PV actual Power 27.3 kWh {{ plot.sparkline('', 'bath_plot_value', 'avg', '3h', 'now', '', '', 10) }}
actual Consumption 23.5 kWh {{ plot.sparkline('', 'bath_plot_value2', 'avg', '3h', 'now', '', '', 10) }}
{% endblock %}