Dashboard JSON model
To view the JSON of a dashboard:
- Navigate to a dashboard.
- In the top navigation menu, click the Dashboard settings (gear) icon.
When a user creates a new dashboard, a new dashboard JSON object is initialized with the following fields:
Each field in the dashboard JSON is explained below with its usage:
Panels
Panels are the building blocks of a dashboard. It consists of data source queries, type of graphs, aliases, etc. Panel JSON consists of an array of JSON objects, each representing a different panel. Most of the fields are common for all panels but some fields depend on the panel type. Following is an example of panel JSON of a text panel.
w
1-24 (the width of the dashboard is divided into 24 columns)- In grid height units, each represents 30 pixels.
x
The x position, in same unit asw
.
The grid has a negative gravity that moves panels up if there is empty space above a panel.
Usage of the fields is explained below:
Usage of the above mentioned fields in the templating section is explained below: