$arr = array(
0 => array(
'data' => 100,
'type' => 1,
'time' => '2018-01-26',
),
1 => array(
'data' => 200,
'type' => 2,
'time' => '2018-01-26',
),
2 => array(
'data' => 300,
'type' => 2,
'time' => '2018-01-27',
),
3 => array(
'data' => 400,
'type' => 3,
'time' => '2018-01-27',
),
4 => array(
'data' => 500,
'type' => 4,
'time' => '2018-01-28',
),
);