{# A generic HTML fragment that can be included to embed a chart. Requires scripts: chart.js Template variables: chart_data_url - the base URL to the chart data feed chart_opts - a tuple with format (chart_id, enableZoom, showWeekends, xAxisType, yAxisType) where chart_id is any unique ID value to use for the chart element on the page, and the other options are as described for initChart() in chart.js timezone - the server's time zone code timezone_seconds - the offset required to convert the time zone to UTC This template creates the "chartOptions" JavaScript object that can be used to invoke initChart() and refreshChart() in chart.js. #}
{% if chart_opts.1 %} Click and drag on the chart to zoom in (reset). {% endif %} {% if chart_opts.3 == 'time' or chart_opts.4 == 'time' %} {% include "inc_timezone.html" %} {% endif %}