class TimeSeriesReportWithCustomDatesAndCustomTitle(TimeSeriesReportWithCustomDates):
report_title = _("Time Series Report With Custom Dates and custom Title")
report_description = _(
"Extends custom date ranges with get_time_series_field_verbose_name() "
"to give each period column a human-readable heading like 'First 10 days sales 1-2024'.")
time_series_columns = [
SumOfFieldValue, # Use our newly created ComputationField with the custom time series verbose name
]
chart_settings = [
Chart(
"Client Sales",
Chart.BAR,
data_source=["sum_of_value"], # Note: This is the name of our `TotalSalesField` computation field
title_source=["name"],
),
Chart(
"Total Sales [Pie]",
Chart.PIE,
data_source=["sum_of_value"],
title_source=["name"],
plot_total=True,
),
]