This utilizes data from https://api.llama.fi/v2/chain and renders the data as a barchart directly instead of a table.
In main.py configure your Plotly object and export it as figure.to_json()
like shown in the example. In our case we are creating a bar chart.
You will notice in the widgets.json we have identified the data as chart instead of table as we did in other examples and set our chart type as bar to match the plotly export - You can set the type to whatever you are exporting - we will render the plotly object based on what is exported.
There are many other configurations you can do which are laid out in the main readme.md file
One you have your data in the folder you can run the backend with :
Run `uvicorn main:app --port 5050`
Now you can add the backend to the data connectors page with the base url of your API. In this case it is http://localhost:5050