{% macro histogramchart(id, model, js_hook, ajax_data='', in_box=False, options={}, with_control=True, init_params={}) -%}
{%- endmacro %} {# For now we actually only use linechart_with_current_new. Keep this for future extension #} {% macro linechart(widget, js_hook, options={}) -%} {% if widget.style == 'chart_with_current' %} {{linechart_with_current_new(widget, js_hook, options)}} {% elif widget.style == 'chart_complex' %} {{linechart_complex(widget, js_hook, options)}} {% else %} {{linechart_normal(widget, js_hook, options)}} {% endif %} {%- endmacro %} {% macro LineChart(id, url, check_url, options={}) -%}
{%- endmacro %} {% macro linechart_with_current_new(widget, js_hook, options={}) -%}
{% if widget.error %}
{{widget.error_msg}}
{% else %}
{% if not ('hide_collect' in options and options['hide_collect']) %} {% endif %}
{% endif %}
{%- endmacro %}