data split in newData and Labels. Next step construct data for Dygraph.