Great :).
What about the labels though? in this case the "name"?
$data = array(
'data' => array(
array(
'name' => 'data 1',
'values' => array(10),
),
array(
'name' => 'data 2',
'values' => array(20),
),
array(
'name' => 'data 3',
'values' => array(50),
),
array(
'name' => 'data 4',
'values' => array(25),
),
),
);