def METHOD_NAME(self):
    # this tests a regression - namely that calling to_json on a chart config
    # when accessed via a report would crash.
    report = ReportConfiguration(configured_charts=[
        dict(
            type='pie',
            value_column='count',
            aggregation_column='remote',
            title='Remote status'
        )
    ])
    chart = report.charts[0]
    chart.to_json()  # this is the line that used to crash