{
"chartName": "string",
"viewId": "string",
"chartType": "string",
"dataScope": "string",
"timeFieldId": "string",
"timeRange": "string",
"customDynamicRange": {
"from": {
"type": "string",
"value": 0,
"unit": "string"
},
"to": {
"type": "string",
"value": 0,
"unit": "string"
}
},
"customRange": {
"startDate": "string",
"endDate": "string"
},
"dimension": [
{
"field": "string",
"displayName": "string",
"granularity": 0,
"includeEmpty": true
}
],
"rows": [
{
"field": "string",
"displayName": "string",
"granularity": 0,
"includeEmpty": true
}
],
"columns": [
{
"field": "string",
"displayName": "string",
"granularity": 0,
"includeEmpty": true
}
],
"values": [
{
"field": "string",
"aggregation": "string",
"displayName": "string"
}
],
"rightValues": [
{
"field": "string",
"aggregation": "string",
"displayName": "string"
}
],
"targetValues": [
{
"field": "string",
"aggregation": "string",
"displayName": "string"
}
],
"gaugeMin": "string",
"gaugeMax": "string",
"mapScope": "country",
"mapRegionCode": "string",
"filter": {
"type": "group",
"logic": "AND",
"children": [
{}
],
"field": "string",
"operator": "eq",
"value": "string"
},
"sorts": [
{
"field": "string",
"isAsc": true
}
],
"limit": 0
}curl --location 'https://api.mingdao.com/v3/app/worksheets//charts' \
--header 'HAP-Appkey: {{appkey}}' \
--header 'HAP-Sign: {{sign}}' \
--header 'Content-Type: application/json' \
--data '{
"chartName": "string",
"viewId": "string",
"chartType": "string",
"dataScope": "string",
"timeFieldId": "string",
"timeRange": "string",
"customDynamicRange": {
"from": {
"type": "string",
"value": 0,
"unit": "string"
},
"to": {
"type": "string",
"value": 0,
"unit": "string"
}
},
"customRange": {
"startDate": "string",
"endDate": "string"
},
"dimension": [
{
"field": "string",
"displayName": "string",
"granularity": 0,
"includeEmpty": true
}
],
"rows": [
{
"field": "string",
"displayName": "string",
"granularity": 0,
"includeEmpty": true
}
],
"columns": [
{
"field": "string",
"displayName": "string",
"granularity": 0,
"includeEmpty": true
}
],
"values": [
{
"field": "string",
"aggregation": "string",
"displayName": "string"
}
],
"rightValues": [
{
"field": "string",
"aggregation": "string",
"displayName": "string"
}
],
"targetValues": [
{
"field": "string",
"aggregation": "string",
"displayName": "string"
}
],
"gaugeMin": "string",
"gaugeMax": "string",
"mapScope": "country",
"mapRegionCode": "string",
"filter": {
"type": "group",
"logic": "AND",
"children": [
{}
],
"field": "string",
"operator": "eq",
"value": "string"
},
"sorts": [
{
"field": "string",
"isAsc": true
}
],
"limit": 0
}'{
"success": true,
"data": {
"chartId": "68a1f3b2c9d04e5f67890abc",
"view_id": "view_001",
"worksheet_id": "worksheet_001",
"chartName": "各状态需求数量",
"chartType": "columnChart",
"timeFieldId": "ctime",
"timeRange": "last30Days"
}
}