function parseCSV(text, startsWithZero = false) {
const lineend0 = text.indexOf('\n')
const lineend1 = text.indexOf('\n', lineend0 + 1)
const lineend2 = text.indexOf('\n', lineend1 + 1)
let last = lineend2
if (startsWithZero) {
const lineend3 = text.indexOf('\n', lineend2 + 1)
last = lineend3
}
const idxes = text.slice(0, lineend0).split(',')
const labels = text.slice(lineend0 + 1, lineend1).split(',')
return d3.csvParseRows(text.slice(last + 1))
}