观远数据开放平台
返回最新版
当前版本V7.0.0
观远数据开放平台
  • 开发指南
  • 用户
  • 用户组
  • 角色
  • 数据集
  • 仪表板
  • 订阅预警
  • 卡片
    • 获取卡片数据POST
  • 卡片导出
  • 权限
  • 资源操作
  • 用户登录POST
亮色模式

    获取卡片数据

    POST/public-api/card/{cardId}/data

    请求参数

    Path 参数
    cardId
    string 
    卡片ID
    必需
    Header 参数
    X-Auth-Token
    string 
    个人Token
    必需
    Body 参数application/json
    dynamicParams
    array [object] 
    必需
    offset
    integer 
    数据的起始位置
    可选
    limit
    integer 
    获取的数据条数
    可选
    view
    enum<string> 
    数据获取方式
    必需
    枚举值:
    GRAPHGRID
    示例
    {
      "dynamicParams": [
        {}
      ],
      "offset": 0,
      "limit": 0,
      "view": "GRAPH"
    }

    示例代码

    返回响应

    成功(200)
    HTTP 状态码: 200
    内容格式: JSONapplication/json
    数据结构
    result
    string 
    必需
    response
    object 
    必需
    chartMain
    object 
    可选
    view
    string 
    必需
    rawDataNotChanged
    boolean 
    可选
    chartType
    string 
    必需
    cardType
    string 
    必需
    示例
    {
      "result": "ok",
      "response": {
        "chartMain": {
          "offset": 0,
          "data": [
            [
              {
                "v": 700
              }
            ],
            [
              {
                "v": 700
              }
            ],
            [
              {
                "v": 700
              }
            ],
            [
              {
                "v": 700
              }
            ],
            [
              {
                "v": 739
              }
            ],
            [
              {
                "v": 700
              }
            ],
            [
              {
                "v": 700
              }
            ],
            [
              {
                "v": 700
              }
            ],
            [
              {
                "v": 700
              }
            ],
            [
              {
                "v": 700
              }
            ]
          ],
          "column": {
            "meta": [
              {
                "title": "度量",
                "metaType": "METRIC",
                "headerFormat": null,
                "isMPH": true
              }
            ],
            "values": [
              [
                {
                  "title": "单价",
                  "type": "metric",
                  "originTitle": "单价",
                  "alias": null,
                  "fmt_idx": 0,
                  "fdType": "LONG",
                  "fdId": "l99eda651f429419a900b156",
                  "headerFormat": null,
                  "key": "zCxQmiQVKI",
                  "miniChart": null,
                  "annotation": "",
                  "sortField": "c1",
                  "emptyCol": false
                }
              ]
            ],
            "fieldFormat": {
              "dimThreshold": [],
              "linkFormat": []
            },
            "metricFieldFormat": {
              "numberFormat": [
                null
              ],
              "conditionFormat": [
                null
              ],
              "linkFormat": [
                null
              ]
            },
            "columnFieldFormat": {
              "numberFormat": [
                null
              ]
            }
          },
          "count": 12,
          "meta": {
            "dynamicParameters": [],
            "axes": {
              "categoryAxis": {
                "showTitle": false,
                "title": null,
                "autoStep": true,
                "step": "",
                "distance": "",
                "visible": true
              },
              "mainAxis": {
                "tickInterval": null,
                "max": "",
                "unit": null,
                "tickPosition": null,
                "autoTickInterval": true,
                "visible": true,
                "min": "",
                "distance": "",
                "autoExtremes": true,
                "showGridLine": true,
                "title": null,
                "showTitle": false,
                "minorTickPosition": null
              },
              "navigator": {
                "showNavigator": false,
                "fixedValueAxis": true
              }
            }
          },
          "hitCache": true,
          "extra": {
            "headerSortings": null
          },
          "limit": 10,
          "hasMoreData": true,
          "limitInfo": {
            "dataLimit": 20000,
            "colLimit": 100,
            "hasMoreData": false,
            "hasMoreCol": false
          },
          "row": {
            "fieldFormat": {
              "dimThreshold": [
                null
              ],
              "linkFormat": [
                {
                  "type": "text"
                }
              ]
            },
            "rowFieldFormat": {
              "numberFormat": [
                null
              ]
            },
            "meta": [
              {
                "fdId": "f070df980c55f4de2ad01b91",
                "title": "店铺名称",
                "originTitle": "店铺名称",
                "alias": null,
                "fdType": "STRING",
                "metaType": "DIM",
                "parentFdName": null,
                "granularity": null,
                "headerFormat": null,
                "key": "UltHzhtQbN",
                "annotation": "",
                "sortField": "c0"
              }
            ],
            "values": [
              [
                {
                  "titleType": "STRING",
                  "granularity": null,
                  "title": "北京分店",
                  "num_fmt_idx": 0,
                  "emptyCol": false
                }
              ],
              [
                {
                  "titleType": "STRING",
                  "granularity": null,
                  "title": "云南分店",
                  "num_fmt_idx": 0,
                  "emptyCol": false
                }
              ],
              [
                {
                  "titleType": "STRING",
                  "granularity": null,
                  "title": "青海分店",
                  "num_fmt_idx": 0,
                  "emptyCol": false
                }
              ],
              [
                {
                  "titleType": "STRING",
                  "granularity": null,
                  "title": "江苏分店",
                  "num_fmt_idx": 0,
                  "emptyCol": false
                }
              ],
              [
                {
                  "titleType": "STRING",
                  "granularity": null,
                  "title": "山东分店",
                  "num_fmt_idx": 0,
                  "emptyCol": false
                }
              ],
              [
                {
                  "titleType": "STRING",
                  "granularity": null,
                  "title": "湖南分店",
                  "num_fmt_idx": 0,
                  "emptyCol": false
                }
              ],
              [
                {
                  "titleType": "STRING",
                  "granularity": null,
                  "title": "上海分店",
                  "num_fmt_idx": 0,
                  "emptyCol": false
                }
              ],
              [
                {
                  "titleType": "STRING",
                  "granularity": null,
                  "title": "广东分店",
                  "num_fmt_idx": 0,
                  "emptyCol": false
                }
              ],
              [
                {
                  "titleType": "STRING",
                  "granularity": null,
                  "title": "吉林分店",
                  "num_fmt_idx": 0,
                  "emptyCol": false
                }
              ],
              [
                {
                  "titleType": "STRING",
                  "granularity": null,
                  "title": "浙江分店",
                  "num_fmt_idx": 0,
                  "emptyCol": false
                }
              ]
            ]
          },
          "config": null
        },
        "view": "GRID",
        "rawDataNotChanged": false,
        "chartType": "BASIC_COLUMN",
        "cardType": "CHART"
      }
    }
    最后修改时间: 7 个月前
    举报