kurkle / chartjs-chart-treemap

Chart.js module for creating treemap charts
MIT License
139 stars 34 forks source link

Add rtl property in the subrectangle to squarify groups #119

Closed stockiNail closed 2 years ago

stockiNail commented 2 years ago

When the groups are computed recursively, the sub rectangle doesn't pass the rtl options but it should.

kurkle commented 2 years ago

Did you encounter this in a use case = do you have a regression test case handy for this?

stockiNail commented 2 years ago

No, I just see that rtl is not passed even if it should be requested. Let me try to create a test case.

stockiNail commented 2 years ago

senza

As you can see, without passing rtl, the sub rectangle are positioned ltr even if I set the rtl: true.

Instead, passing rtl:

conrtl

I'm adding the test case. Sorry if I didn't do before.