Guides
Create a chart from scratch
This guide will show you how you can create a chart in a team that does not have any content
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
Connection
to authenticate with your data source - /team/:team_id/connection - Create a
Dataset
that we will use to format the data from the data source - /team/:team_id/dataset - Create a
DataRequest
to fetch the data from the data source. We need to connect this to the dataset we created before using thedataset_id
field - /team/:team_id/dataset/:dataset_id/dataRequest - Create a
Dashboard
where we will place the chart - /project - Create a
Chart
and connect it to the dashboard we created before using theproject_id
field - /project/:project_id/chart - Create a
ChartDatasetConfig
and connect it to the relevant dataset and chart through thedataset_id
andchart_id
fields - /project/:project_id/chart/:chart_id/chart-dataset-config