D3/Calendar: Difference between revisions
From charlesreid1
No edit summary |
(→Notes) |
||
| Line 2: | Line 2: | ||
==Notes== | ==Notes== | ||
Original example: https://bl.ocks.org/mbostock/4063318 | |||
Basically, chart does all the hard stuff | Basically, chart does all the hard stuff | ||
| Line 10: | Line 12: | ||
Colormap script from Python | Colormap script from Python | ||
==Links== | ==Links== | ||
Revision as of 09:45, 12 February 2018
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