Smart Charts
This is the official documentation of the @forestadmin/agent
Node.js agent.
Live Query Charts ↗ allowed the creation of charts from SQL queries from the UI.
Steps
Step 1: Retrieve the SQL query from the UI

You can retrieve the SQL query of a Live query chart
by clicking on the Cog
icon of the chart when using the Edit Layout
mode.
Step 2: Create a new API chart
The next step will be to create a new API chart using the SQL query you retrieved in the previous step.
Step 3: Retrieve the URL of the generated chart
When you create a new API chart, you will need to retrieve the URL of the generated chart.
It is printed to the console when the agent starts (in development mode).
Step 4: Change the old chart configuration
Instead of Query
, select Smart
in the data source selector, and enter the path that was printed to the console in the previous step.
Last updated
Was this helpful?