vasturiano / treemap-chart

A treemap interactive chart web component for visualizing hierarchical data

Home Page:https://vasturiano.github.io/treemap-chart/example/flare/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Padding all 4 sides

directcuteo opened this issue · comments

Is your feature request related to a problem? Please describe.
I would like to have the option to add padding around the entire block because now the name of the parent block is behind the child block, so I would like to move the name top left (which is possible with CSS only) and then add padding to the child block, so the parent's name is visible.

Describe the solution you'd like
Right now the padding is added only to the bottom side, I would like to have the option to add padding to all 4 sides.
(I could also try to modify this and submit a PR if that works)

Thank you!

@directcuteo currently the padding property is fully symmetrical, the same amount gets added to all 4 sides of each rectangle. Are you observing a different behaviour? If so, would you mind making a simple example on https://codepen.io/?