JSPM

density-plot

1.0.4
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q44537F
  • License MIT

A simple density plot / 2D histogram / heatmap.

Package Exports

  • density-plot

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (density-plot) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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