From charlesreid1

Revision as of 09:45, 12 February 2018 by Admin (talk | contribs) (→‎Notes)

D3 calendar chart

Notes

Original example: https://bl.ocks.org/mbostock/4063318

Basically, chart does all the hard stuff

You just create a list of formatted dates and times, and provide it a colormap

Main challenge was styling, getting line colors matched up and looking okay, getting colormap figured out

Colormap script from Python

Links

Some useful tools for the colormaps:

webcolors: https://github.com/ubernostrum/webcolors/

cmocean: https://matplotlib.org/cmocean/

yt volume visualization: http://yt-project.org/doc/index.html

text color: change fill attribute https://duckduckgo.com/?q=d3+text+color&t=ffab&ia=qa

more colormaps: http://schubert.atmos.colostate.edu/~cslocum/custom_cmap.html


Flags