Data analyze and Plot on Node.js
npm install databaker --save
And write code like below:
(sourcefile: data.csv)
const { LineChart, readCsvFile } = require("databaker")
async function main() {
const datas = await readCsvFile("./data.csv")
new LineChart().draw(datas.map(d => d.letter), [
datas.map(d => +d.frequency),
datas.map(d => +d.frequency * 0.9),
]).show()
}
main()
If iTerm2 is used, the output is as follows:
Awesome!
wip
MIT