{% extends "layouts/main.html" %} {% block title %}{{ page_title }}{% include "layouts/_app_title_suffix.html" %}{% endblock %} {% block page_title %}{{ page_title }}{% endblock %} {% block content %} {# Graph view — interactive chart with toolbar controls: - Chart type : Bar / Line / Area / Pie buttons - Group by : dropdown from the model's groupable fields - Measure : dropdown from the model's numeric fields (+ Count) - Search : free-text filter applied server-side - View-switcher: jumps to list / kanban / graph / pivot for the same model Controls are wired to the Alpine `pvGraphToolbar` component which fetches /api/graph/data on every change and updates ApexCharts without a full page reload. The initial data + field lists are server-rendered into the page as JSON so the chart is visible immediately on load. #}
{# ── Toolbar row ── #}
{% if view_switcher %} {% include "_view_switcher.html" %} {% endif %} {# Separator #} {# Chart-type buttons #}
{# Group By selector #}
Group by
{# Measure selector #}
Measure
{# Search #}
{# Loading spinner + subtitle #}
{# ── Chart area ── #}
{% endblock %} {% block scripts %} {% endblock %}