Skip to content

Latest commit

 

History

History
32 lines (20 loc) · 923 Bytes

README.md

File metadata and controls

32 lines (20 loc) · 923 Bytes

density-plot

A simple density plot / 2D histogram / heatmap.

Uses D3 for axes and color scales as well as d3-scale-chromatic.

Because the plot uses 2D canvas pixels as opposed to svg rectangles this implementation is likely better suited for large plots with tens of thousands of data points.

Node:

npm install density-plot

Browser:

In the dist folder is minified version of the code built for loading into the browser which uses the global variable "densityPlot".

See example folder for usage or this plunkr.

screen shot 2017-12-18 at 5 27 55 pm

Build:

npm run build

Develop:

npm run dev