Skip to content

Repository files navigation

Date Chart

Creates a SVG date chart from CSV table like this:

DateSeries 1Series 2...
Tue Apr 28 14:38:44 UTC 202076.6766.42...
............

In order to create date chart run this command (you need Deno to be installed on your machine):

deno run --allow-read=. --allow-write=. --reload https://tatomyr.github.io/date-chart/cli.ts -i test-data.csv -o chart.svg

You can also use local script:

deno run --allow-read=. --allow-write=. cli.ts -i test-data.csv -o chart.svg

You have to specify an input file with -i flag. Output file flag -o is optional (the script will automatically add .svg extension).

Other available flags are:

FlagAlias
widthW
heightH
margin-topT
margin-rightR
margin-bottomB
margin-leftL
x-ticksX
y-ticksY
font-sizeF
chart-background-
chart-border-
sheet-background-
y-rangey

The y-range should be supplied as two numbers separated by ellipsis (..) or a hyphen.

You may also specify a list of colors separated by comma right after the other flags to use them for series colouring.

Testing

Run tests with deno test. See more here.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages