john-guerra / navio

A d3 visualization widget to help summarizing, exploring and navigating large network visualizations
https://navio.dev
MIT License
106 stars 13 forks source link

change the date parsing format #8

Closed john-guerra closed 5 years ago

john-guerra commented 5 years ago

It would be nice to support dates as a different data type

jgmurillo10 commented 5 years ago

It will be required d3.time to help parsing the date. The expected behaviour will be something like:

var stringDateFormat = "%Y%m%d"; // using d3 stantard format
navio.addDateAttrib([name], stringDateFormat);

And underneath use var parser = d3.timeParse(format);

john-guerra commented 5 years ago

I would rather have it such that the user has to parse the date themselves