Metrics
Get Public Chart Data
GET
chartId*stringSuccess
application/json- response
chart*projectName*stringprojectPreferredChartColors*array<string>|nulldata*unknownmarkers?array<>|nullmarkerCollectionGrouping?|nullflowMeta?|nullcurl -X GET 'https://api.faststats.dev/v0/metrics/embed/string'Example Response
{
"chart": {
"id": "string",
"name": "string",
"description": "string",
"chartType": "bar",
"queryConfig": {
"groupLimit": 0,
"visualOptions": {
"colors": [
"string"
],
"thresholds": [
{
"value": 0,
"label": "string",
"color": "string"
}
],
"valueFormat": {
"unit": "number",
"customUnit": "string",
"decimals": 0
},
"valueAxis": {
"min": 0,
"max": 0
},
"pie": {
"style": "pie",
"showLegend": true,
"showTotal": true,
"showLabels": true,
"totalDisplayMode": "sum",
"drilldown": {
"enabled": true,
"splitPattern": "string"
}
},
"bar": {
"logarithmic": true,
"stacked": true,
"orientation": "vertical"
},
"line": {
"logarithmic": true,
"lineType": "monotone",
"showDots": true
},
"widget": {
"showTrend": true,
"displayMode": "default",
"valueFormat": "number"
},
"list": {
"selectedTabIndex": 0,
"splitPattern": "string",
"multiMetric": true
},
"heatmap": {
"showLegend": true,
"showValues": true
},
"radar": {
"logarithmic": true,
"showDots": true,
"fillOpacity": 0,
"showLegend": true,
"gridType": "polygon"
},
"scatter": {
"logarithmic": true,
"pointSize": "small",
"showLegend": true
},
"table": {
"showBars": true,
"showTotals": true
}
},
"markerCollections": [
{
"collectionId": "string",
"enabled": true,
"display": {
"icon": "string",
"emoji": "string",
"color": "string"
}
}
]
},
"query": {
"type": "flow",
"nodes": [
{
"id": "string",
"type": "string",
"data": {},
"position": {
"x": 0,
"y": 0
}
}
],
"edges": [
{
"id": "string",
"source": "string",
"target": "string"
}
]
}
},
"projectName": "string",
"projectPreferredChartColors": [
"string"
],
"data": null,
"markers": [
{
"id": "string",
"collectionId": "string",
"collectionName": "string",
"timestamp": "string",
"title": "string",
"description": "string",
"icon": "string",
"emoji": "string",
"color": "string"
}
],
"markerCollectionGrouping": {
"property1": "auto",
"property2": "auto"
},
"flowMeta": {
"outputs": [
{
"id": "string",
"index": 0,
"name": "string",
"explicitName": "string",
"iconSetId": "string",
"color": "string",
"colors": [
"string"
],
"sort": {
"by": "value",
"direction": "asc"
},
"splitPattern": "string",
"splitDataSource": "string",
"groupField": "string",
"groupFields": [
"string"
],
"primaryMetric": {
"field": "string",
"aggregation": "string"
},
"dailyRollup": "sum"
}
],
"hasTimeGroup": true,
"hasBreakdownTimeSeries": true,
"datasourceFields": [
"string"
],
"splitLabelSeparator": "string",
"timeGroupInterval": "auto"
}
}