{ "msg": null, "data": { "qualityHNPVORYs": [ { "avgH": "0.95", "avgN": "2.17", "avgP": "1.44", "qualifiedRateH": "100.00", "qualifiedRateN": "100.00", "qualifiedRateP": "100.00" }, { "avgH": "0.94", "avgN": "2.17", "avgP": "1.50", "qualifiedRateH": "100.00", "qualifiedRateN": "100.00", "qualifiedRateP": "100.00" }, { "avgH": "0.96", "avgN": "2.25", "avgP": "1.44", "qualifiedRateH": "100.00", "qualifiedRateN": "100.00", "qualifiedRateP": "100.00" }, { "avgH": "0.96", "avgN": "2.24", "avgP": "1.50", "qualifiedRateH": "100.00", "qualifiedRateN": "100.00", "qualifiedRateP": "100.00" }, { "avgH": "0.96", "avgN": "2.20", "avgP": "1.48", "qualifiedRateH": "100.00", "qualifiedRateN": "91.67", "qualifiedRateP": "100.00" }, { "avgH": "0.95", "avgN": "2.26", "avgP": "1.55", "qualifiedRateH": "100.00", "qualifiedRateN": "91.67", "qualifiedRateP": "100.00" }, { "avgH": "0.97", "avgN": "2.17", "avgP": "1.42", "qualifiedRateH": "100.00", "qualifiedRateN": "100.00", "qualifiedRateP": "100.00" } ], "datas": [ "01-02", "01-03", "01-04", "01-05", "01-06", "01-07", "01-08" ] }, "status": "0" } 这是我调用接口的部分代码,上面分别是2号到8号的数据,下面是日期,我写代码$.data.qualityHNPVORYs.${checkDate}[*] 提取到的数据如图。由于数据不包含日期,所以在做柱状图的时候无法把日期作为分类(横坐标),导致实际效果如图。 请问$.data.qualityHNPVORYs.${checkDate}[*] 这句怎么改,才能把日期列也提取出来 |