I m getting following result through query in nodejs.
data = [
{
AValuv: 6,
BValuv: 8928,
CValuv: 2553
}
];
now I through forEach how to split them in two array and push them in the to get the required result.
let name=[];
let value=[];
name=[AValuv, BValuv, CValuv]
value=[6, 8928, 2553]