{% comment %} Chart Component Usage: {% include 'dashboard/components/chart.html' with id="my-chart" type="line" title="Sales Overview" labels=labels datasets=datasets height=300 %} Parameters: - id: Unique identifier for the chart (required) - type: Chart type (line, bar, pie, doughnut, radar, polarArea) - default: line - title: Chart title (optional) - labels: List of labels for the chart (required) - datasets: List of datasets for the chart (required) - height: Height of the chart in pixels (default: 300) {% endcomment %} {% if not id %} {% comment %}Ensure id is provided{% endcomment %}
Error: 'id' parameter is required for chart component
{% else %}
{% if title %}

{{ title }}

{% endif %}
{% endif %}