I would like to generate an x-y plot based on a JSON data feed using angularjs. The JSON data is shown in the code below (EQ magnitude VS time). How can I convert this data into an array format and plot it in c3 chart (such as one in this link I would like to generate an x-y plot based on a