UI/dbai_src/bot_functions.py [122:154]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Example:
```
import plotly.express as px
import pandas as pd

# Data extracted from the SQL output
data = {'Year': [2018, 2019, 2020, 2021, 2022],
        'Sales': [15000, 18000, 16500, 22000, 25000]}

df = pd.DataFrame(data)
# Create the Plot
fig = px.line(df, x='Year', y='Sales', title='Annual Sales Trend')
# fig.show() # DO NOT show the figure yet, as it will be shown by the UI code
```
                '''),
            },
        },
        "required": [
            "code",
        ]
    }
)


plot_chart_func = FunctionDeclaration(
    name="plot_chart",
    description="get the data to plot chart in python plotly."
    " Also deteremines the best suit plot-type for that data.",
    parameters={
        "type": "object",
        "properties": {
            "data": {
                "type": "string",
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



dbai_src/bot_functions.py [120:152]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Example:
```
import plotly.express as px
import pandas as pd

# Data extracted from the SQL output
data = {'Year': [2018, 2019, 2020, 2021, 2022],
        'Sales': [15000, 18000, 16500, 22000, 25000]}

df = pd.DataFrame(data)
# Create the Plot
fig = px.line(df, x='Year', y='Sales', title='Annual Sales Trend')
# fig.show() # DO NOT show the figure yet, as it will be shown by the UI code
```
                '''),
            },
        },
        "required": [
            "code",
        ]
    }
)


plot_chart_func = FunctionDeclaration(
    name="plot_chart",
    description="get the data to plot chart in python plotly."
    " Also deteremines the best suit plot-type for that data.",
    parameters={
        "type": "object",
        "properties": {
            "data": {
                "type": "string",
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



