---
title: "页面通用接口 : 获取chart数据"
method: POST
path: "/api/v1/dashboard/chart"
---

# 页面通用接口 : 获取chart数据

`POST /api/v1/dashboard/chart`

获取chart数据

## Query parameters

- `id` integer, required
- `endpoint` string[], required
- `metric` string[], required
- `start` string, required
- `end` string
- `aggregate` string

## Response `200`

{'title':'chart1','legend':['a','b'],'xaxis':{},'yaxis':{'unit':'%'},'series':[{'type':'line','name':'a','data':[[1550221207000,100],[1550221217000,200],[1550221227000,150],[1550221237000,100],[1550221247000,120],[1550221257000,210],[1550221267000,130],[1550221277000,180]]},{'type':'line','name':'b','data':[[1550221207000,110],[1550221217000,210],[1550221227000,130],[1550221237000,120],[1550221247000,100],[1550221257000,200],[1550221267000,170],[1550221277000,120]]}]}

- string

## Changes

- **2019-09-09** `11922398b48d` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/webankfintech/apis/monitor-server-api/changes/api/v1/dashboard/chart/post.md)

---

[API](https://skmtc.dev/webankfintech/apis/monitor-server-api.md) · [All operations](https://skmtc.dev/webankfintech/apis/monitor-server-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/webankfintech/monitor-server-api/revisions/11922398b48d/schema)
