Creating a chart is a multi-step process since the current API was developed to be used with Chartbrew’s frontend.
In the future, we plan to introduce new endpoints to make the process easier.
- Create a
Connectionto authenticate with your data source - /team/:team_id/connection - Create a
Datasetthat we will use to format the data from the data source - /team/:team_id/dataset - Create a
DataRequestto fetch the data from the data source. We need to connect this to the dataset we created before using thedataset_idfield - /team/:team_id/dataset/:dataset_id/dataRequest - Create a
Dashboardwhere we will place the chart - /project - Create a
Chartand connect it to the dashboard we created before using theproject_idfield - /project/:project_id/chart - Create a
ChartDatasetConfigand connect it to the relevant dataset and chart through thedataset_idandchart_idfields - /project/:project_id/chart/:chart_id/chart-dataset-config