Smart Charts
Last updated
Was this helpful?
Last updated
Was this helpful?
This is the official documentation of the forestadmin/laravel-forestadmin
v2+ and forestadmin/symfony-forestadmin
PHP agents.
allowed the creation of charts from SQL queries 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.
The url of your newly created api chart is /forest/_charts/$chartName
. The $chartName
is the name given to the addChart
method. For the previous example the url should be /forest/_charts/appointments
Instead of Query
, select Smart
in the data source selector, and enter the path that was printed to the console in the previous step.
The next step will be to create a new using the SQL query you retrieved in the previous step.