Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Ask HN: JavaScript library for chart like GitHub commit history?
1 point by ben-gy on July 5, 2020 | hide | past | favorite | 1 comment


This can be accomplished with D3.js[1] to bind data to HTML elements -- a div block, in your case -- and color them based on value.

D3 is a big library, so you'll likely only need these modules:

    d3-selection
    d3-scale
[1]: https://d3js.org/




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: