D3
OG
Old school D3 from simpler times
All examples
By author
By category
About
tomshanley
Full window
Github gist
Marimekko using d3.treemapSliceDice and version 4 of D3
<!DOCTYPE html> <meta charset="utf-8"> <head> <link rel="stylesheet" type="text/css" href="siu.css"> <link rel="stylesheet" type="text/css" href="siu-treemap.css"> </head> <body> <h1>Marimekko treemap</h1> <button id="change-button" onclick="changeChart(500)" >Change</button> <div class = "chart", id="treemap-chart"></div> <script src="d3.js"></script> <script src="siu-helper-functions.js"></script> <script src="treemap.js"></script> </body>