const data = [{"苹果": 3839,"小米": 1423,"华为": 4965,"oppo": 3334,"vivo": 2820,"一加": 4751},{"苹果": 3560,"小米": 2099,"华为": 3192,"oppo": 4210,"vivo": 1283,"一加": 1613},{"苹果": 1864,"小米": 4598,"华为": 4202,"oppo": 4377,"vivo": 4123,"一加": 4750}
];
const a = Object.keys(data[0]).map((val) => {return {name: val,data: orderData.data.map((item) => item[val])}})console.log(a)