Skip to content

[Experimantal] Node.js data analysis and plot library

Notifications You must be signed in to change notification settings

wan2land/databaker

Repository files navigation

Data Baker

Data analyze and Plot on Node.js

Installation

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:

example.png

Awesome!

Documents

wip

Data Reader

Csv Reader

Chart

Bar Chart

Line Chart

License

MIT

About

[Experimantal] Node.js data analysis and plot library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published