This template joins a text bubble with a user selected chart, there are 4 options for the position of the text bubble (top, down, left, right), and it can be customized with background colors and images. It also provides the option to set an image on top of the bubble for the horizontal configuration.
The Method To Use
The method is s.plt.infographics_text_bubble()
It must contain the following input variables:
title: str
text: str
order: int
# The parameters that the chart function will take when executed
chart_parameters: Dict
And accepts the following input variables as optional:
rows_size: int = 3
cols_size: int = 12
# The funcion that will be executed passing the previous parameters,
# by default it will use a free_echarts bar chart
chart_function: Optional[Callable] = None
# the background image for the bubble
background_url: Optional[str] = None
# If there is no image this color will be used as the background
background_color: str = 'var(--background-default)'
# Where the bubble will be located ['top', 'bottom', 'left', 'right']
bubble_location: str = 'top'
# The image located avobe the bubble in the horizontal configs,
# if the string 'default' is passed it will take a default image
image_url: Optional[str] = None
# Size of the previous image
image_size: int = 100
Examples
All the examples use these values for the parameters: