generate_figure¶
-
generate_figure
(data_source: str, parent_regions: Iterable[str], regions: Iterable[str], title: str, y_title: str, data_transform_fuction: Callable = None, subsets: Iterable[str] = ['confirmed'], plot_settings: Iterable[str] = [], fit_model: str = None) → Dict[source]¶ Creates the Figure data for a plot
- Parameters
data_source (str) – name of the data source
parent_regions (Iterable[str]) – names of the parent_regions which should be plotted
regions (Iterable[str]) – names of the regions which should be plotted
title (str) – Title of the plot
y_title (str) – caption of the y-axis
data_transform_fuction (Callable, optional) – function which should be applied on the data, by default None
subsets (Iterable[str], optional) – subsets of the data which should be ploted, by default [“confirmed”]
plot_settings (Iterable[str], optional) – settings which should be used for the plot, by default []
fit_model (str, optional) – name of the fit model which should be used, by default None
- Returns
figure data of the plot
- Return type
Dict