Skip to content

Latest commit

 

History

History
37 lines (22 loc) · 727 Bytes

readme.md

File metadata and controls

37 lines (22 loc) · 727 Bytes

d3-fg

Flamegraph visualization for d3 v5.x

Installation

npm install d3-fg --save

Usage

d3-fg is currently built against d3 v5.x.

var tree = require('./data.json') // d3 json tree 
var element = document.querySelector('chart') // <chart> element which should be in html body
require('d3-flamegraph')({{tree, element}})

Dependencies

Dev Dependencies

None

Acknowledgements

Sponsored by nearForm.

Based on the work by Martin Spier at https://www.npmjs.com/package/stackvis.

License

Apache 2.0