Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
ID of the project
Body
Create a chart with all its chart dataset configs in one API call
ID of the project
Name of the chart
The type of chart
line, bar, pie, doughnut, radar, polar, table, kpi, avg, gauge, matrix, markdown The sub-type of chart, currently only AddTimeseries is supported for accumulating timeseries data
Whether the chart is public
Whether the chart is shareable
Whether to display the chart.js legend
0 to hide, integer value to set the point radius
Whether to display the data labels on each data point on the chart
Used to inject a fixed start date into the chart
Used to inject a fixed end date into the chart
The format of the date variables in the chart
Whether to include zero-valued data points in the chart
Whether to use the current end date as the end date for the chart - this moves the start date to match the original period length
Whether to force the start date to remain fixed
The time interval of the chart
second, minute, hour, day, week, month, year The interval in seconds at which the chart should be automatically updated
Whether the chart is a draft and should be hidden from dashboard viewers
Chart mode shows just the chart, kpichart shows a KPI on top of the chart.
chart, kpichart Cap the maximum shown value on the chart
Cap the minimum shown value on the chart
Whether to disable the export button for the chart
Whether to display the chart on the report
How many ticks to display on the x-axis
default, half, third, fourth, showAll Whether to stack the chart - only works for bar charts
Whether to display the chart horizontally - only works for bar charts
Whether to show the growth percentage at the top of the chart
When negative growth is meant to be positive and vice versa
The layout of the chart - in the format of react-grid-layout. If not provided, will be automatically calculated based on existing charts in the project.
Whether to use a logarithmic scale for the y-axis
The content used for type=markdown
The ranges to display on the chart - only works for gauge charts
Whether to dash the last point on the chart - only works for line charts
Default number of rows per page for table charts
Array of chart dataset configs to create with the chart. The chart_id will be automatically set.
Response
Created chart with all chart dataset configs