当我从 REST API 获取数据时,我的 JSON 响应如下:
[{"_id":"5686ec582df17bea255ec3c2","litres":3,"minute":54,"__v":0}, {"_id":"5686f4b22df17bea255ec3c3","litres":4,"minute":55, "__v":0},{"_id":"568bda9531906b7020d48664","litres":5,"minute":56,"__v":0},{"_id":"568be3dc31906b7020d48665","litres":12, “分钟”:57,“__v”:0}]
我想要一个折线图,y 轴上是升,x 轴上是分钟。
我如何解析我的 JSON,以便它在 ZingChart 中以正确的格式用于此类图表?