你好,我正在使用amcharts,我想使用dataloader插件来创建amchart,api响应具有嵌套对象。我试过了,但是行不通。
我的json响应是这样的。我也想将24小时时间转换为12小时时间(json中的插槽)
如何使用Dataloader插件使用这种json类型创建图表
Fiddle
{
"driver_data": [
{
"slot": 0,
"rideCount": 0
},
{
"slot": 30,
"rideCount": 0
},
{
"slot": 100,
"rideCount": 0
},
{
"slot": 130,
"rideCount": 0
},
{
"slot": 200,
"rideCount": 0
}
],
"passenger_data": [
{
"slot": 0,
"rideCount": 0
},
{
"slot": 30,
"rideCount": 0
},
{
"slot": 100,
"rideCount": 0
},
{
"slot": 130,
"rideCount": 0
},
{
"slot": 200,
"rideCount": 0
},
{
"slot": 230,
"rideCount": 0
},
]
}