class TestChart(StackedBarChart):
def get_categories(self):
"""Return 7 labels for the x-axis."""
return ["January", "February", "March", "April", "May", "June", "July"]
def get_dataset_labels(self):
"""Return names of datasets."""
return ["Central", "Eastside", "Westside", "Central2", "Eastside2",
"Westside2", "Central3", "Eastside3", "Westside3"]
def get_datasets(self):
"""Return 3 datasets to plot."""
return [[750, 440, 920, 1100, 440, 950, 350],
[410, 1920, 180, 300, 730, 870, 920],
[870, 210, 940, 3000, 900, 130, 650],
[750, 440, 920, 1100, 440, 950, 350],
[410, 920, 180, 2000, 730, 870, 920],
[870, 210, 940, 300, 900, 130, 650],
[750, 440, 920, 1100, 440, 950, 3500],
[410, 920, 180, 3000, 730, 870, 920],
[870, 210, 940, 300, 900, 130, 650]]