假设数据如下:
let data= [
{"time":"2021-05-04","count":100, "area": "四川"},
{"time":"2021-05-04","count":200, "area": "四川"},
{"time":"2021-05-06","count":200, "area": "四川"},
{"time":"2021-05-06","count":300, "area": "北京"}
]
期望输入的数据如下:
[
{"time":"2021-05-04","count":300, "area": "四川"},
{"time":"2021-05-06","count":200, "area": "四川"},
{"time":"2021-05-06","count":300, "area": "北京"}
]