Just as a demo, create a new comp, click in the comp window with with the pen tool to create an new shape layer, delete the Fill, and enter this Path expression:
xData = [100,200,300,400,500,600,700,800];
yData = [400,425,400,450,600,350,550,700];
p = [];
for (i = 0; i < xData.length; i++){
p.push(fromComp([xData[i],yData[i]]));
}
createPath(p,[],[],false)
That’s a simple line graph. Now you just need to figure out how to get your data in there.