class HighChartExample(TimeSeriesReport):
chart_engine = "highcharts"
report_title = _("Highcharts Examples ")
report_description = _("Renders the same time-series data with all supported Highcharts chart types."
": column, bar, line, area, pie — including stacked and plot-total variants.")
chart_settings = [
Chart("Columns", Chart.COLUMN, data_source=["sum__value"], title_source=["name"]),
Chart(
"Stacking Columns",
Chart.COLUMN,
data_source=["sum__value"],
title_source=["name"],
stacking=True,
),
Chart(
"Totals Column",
Chart.COLUMN,
data_source=["sum__value"],
title_source=["name"],
plot_total=True,
),
Chart(
"Total Stacking Column",
Chart.COLUMN,
data_source=["sum__value"],
title_source=["name"],
plot_total=True,
stacking=True,
),
Chart(
"Bar",
Chart.BAR,
data_source=["sum__value"],
title_source=["name"],
),
Chart(
"Totals Bar", Chart.BAR, data_source=["sum__value"], title_source=["name"], plot_total=True
),
Chart(
"Line Chart",
Chart.LINE,
data_source=["sum__value"],
title_source=["name"],
# plot_total=True,
),
Chart(
"Total Line chart",
Chart.LINE,
data_source=["sum__value"],
title_source=["name"],
plot_total=True,
),
Chart(
"Pie: Total Sales",
Chart.PIE,
data_source=["sum__value"],
title_source=["name"],
plot_total=True,
),
Chart(
"Area: Client Sales",
Chart.AREA,
data_source=["sum__value"],
title_source=["name"],
),
]