{#- ############################################################################ MACROS FOR RENDERING CHARTS AND TABLES. These macros encapsulate common functionality when generating various charts and tables within the Mentat GUI. There are macros responsible for rendering HTML as well as for rendering JavaScript, all with code reusability in mind. ############################################################################ -#} {#- ============================================================================ Content rendering snippets. Following snippets contain working pieces of HTML or JavaScript and are not intended to be used separatelly. They should be considered internal for the purposes of this library. ============================================================================ -#} {#- Render HTML columns that will contain chart and its related dataset table. string chart_id: Unique identifier of the chart. This will be used for generating all other required unique identifiers. bool scrollable_table: Make the viewport of the dataset table scrollable. -#} {%- macro _snippet_columns(chart_id, scrollable_table = True) %}
{{ chsection[2] }}
{%- if chsection[0] in statistics or render_empty %} {%- if 'timeline' in statistics %} {{ render_chart_timeline_dict( statistics, statistics_var_name, '{}_per'.format(id_prefix.replace('-', '_')), chsection[0] ) }}