A common use case that has been identified is to join indicators with other charts, as they are small components that can easily add insight, so we have facilitated this with the chart and indicators.
This template joins a chart with a description and a button that opens a modal.
The Method To Use
The method is s.plt.chart_and_indicators()
It must contain the following input variables:
menu_path:strorder:int# This are the parameters that the chart function will take when executedchart_parameters: Dict# List of groups of indicators, each one of them will be used as the input# of an indicators function callindicators_groups: List[Union[pd.DataFrame, List[Dict]]]# The parameters that will be passed to the indicators callsindicators_parameters: Dict
And accepts the following input variables as optional:
chart_rows_size:int=3cols_size:int=12# This is the funcion that will be executed passing the previous parameters,# by default it will use a free_echarts bar chartchart_function: Optional[Callable]=Nonetabs_index: Optional[Tuple[str,str]]=Nonemodal_name: Optional[str]=None
Because it is using multiple indicators the function will return the next available order.