I want to try resizing the chart, but there's no option to resize it (but it's still a parameter in here (https://michael-gracie.github.io/gslides/gslides.html#module-gslides.chart)). It'll be helpful if there's a way to resize the chart as I'm trying to replace my template with those chart (currently it become small and distorted if trying to fit the template)
What I Did
def build_plot(dataframe: Frame, x_axis_column: str, y_axis_column: str, title: str, plot_type: str):
if plot_type == "line":
series = [Series.line(series_columns=[y_axis_column])]
elif plot_type == "scatter":
series = [Series.scatter(series_columns=[y_axis_column])]
elif plot_type == "bar":
series = [Series.column(series_columns=[y_axis_column], data_label_enabled=True)]
else:
raise ValueError("Invalid plot_type. Choose 'line', 'scatter', or 'bar'.")
update:
In the init method, I noticed there isn't a parameter for 'size'. However, the documentation mentions it. It might be helpful to clarify if setting the size for the chart is possible.
Description
I want to try resizing the chart, but there's no option to resize it (but it's still a parameter in here (https://michael-gracie.github.io/gslides/gslides.html#module-gslides.chart)). It'll be helpful if there's a way to resize the chart as I'm trying to replace my template with those chart (currently it become small and distorted if trying to fit the template)
What I Did
def build_plot(dataframe: Frame, x_axis_column: str, y_axis_column: str, title: str, plot_type: str): if plot_type == "line": series = [Series.line(series_columns=[y_axis_column])] elif plot_type == "scatter": series = [Series.scatter(series_columns=[y_axis_column])] elif plot_type == "bar": series = [Series.column(series_columns=[y_axis_column], data_label_enabled=True)] else: raise ValueError("Invalid plot_type. Choose 'line', 'scatter', or 'bar'.")