JSFiddle - React, Tailwind, and code Playground

JavaScript

const obj = [
   {
      "name":"BHPhotovideo",
      "prices":[
         {
            "price":"799.00",
            "createdAt":"2017-07-23T16:17:11.000Z",
            "updatedAt":"2017-07-23T17:21:41.000Z"
         },
         {
            "price":"770.00",
            "createdAt":"2017-07-21T16:17:11.000Z",
            "updatedAt":"2017-07-23T16:17:11.000Z"
         },
         {
            "price":"599.00",
            "createdAt":"2017-07-19T16:17:11.000Z",
            "updatedAt":"2017-07-22T16:17:11.000Z"
         },
         {
            "price":"920.00",
            "createdAt":"2017-07-22T16:17:11.000Z",
            "updatedAt":"2017-07-22T16:17:11.000Z"
         }
      ]
   },
   {
      "name":"Adorama",
      "prices":[
         {
            "price":"799.00",
            "createdAt":"2017-07-22T16:17:11.000Z",
            "updatedAt":"2017-07-23T17:21:41.000Z"
         },
         {
            "price":"799.00",
            "createdAt":"2017-07-20T16:17:11.000Z",
            "updatedAt":"2017-07-23T16:17:11.000Z"
         },
         {
            "price":"810.00",
            "createdAt":"2017-07-18T16:17:11.000Z",
            "updatedAt":"2017-07-22T16:17:11.000Z"
         },
         {
            "price":"799.00",
            "createdAt":"2017-07-17T16:17:11.000Z",
            "updatedAt":"2017-07-22T16:17:11.000Z"
         }
      ]
   }
];

const obj2 = obj.map((item) => {
  return {
    name: item.name,
    data: item.prices.map((data) => {
      return {
        x: data.createdAt,
        y: data.price
      }
    })
  }
});

console.log(JSON.stringify(obj2, null, 2));