Skip to content

Latest commit

 

History

History
24 lines (20 loc) · 708 Bytes

README.md

File metadata and controls

24 lines (20 loc) · 708 Bytes

Treemap

A custom chart ultilizing Vega treemap transform

Example

image

Fields

  • Label (dimension)
  • Value (measure)

Options

  • Fill color (color-picker): fill color of the rects
  • Text color (color-picker): color of the text
  • Text length limit (number-input): The max length (px) of labels. Labels longer than this limit will be truncated.
  • Treemap method (select): the method to calculate treemap layout, including
    • binary
    • squarify
    • dice
    • resquarify
    • slice
    • slicedice

Code

treemap.vl.aml