Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 366 Bytes

README.md

File metadata and controls

18 lines (13 loc) · 366 Bytes

SVG From Treemap

Usage:

import svgTreemap from 'svg-treemap';

let input = {
    data: [1, 1, 3, 5],
    labels: ["Apples", "Pears", "Oranges", "Peaches"]
};
let width = 800;
let height = 400;

let svg = svgTreemap(input, width, height);

Example Treemap