Treemap

Packing Diagram

      
import treemap from 'daisy-chart/src/layouts/treemap';
import data from './data/big_city.json';

treemap().data(data)
  .name('treemap')
  .container('#daisy-example')
  .dimensions(['대륙', '국가'])
  .measures([{field: '국가 대비 비중 (%)', op: 'mean'}])
  .shape('pack')
  .size([300, 300])
  .legend(true)
  .render();