Closed kurkle closed 1 year ago
@kurkle I have had a look and it seems depending on the spacing
when it is set <0. Setting spacing
>=0, it works
Having spacing <0, the X and Y of element could be out of chart area. CHART.JS, in point interaction, tests if the element is in chart area:
We could add includeInvisible
options to interaction controller default to true
Or we can check Math.max of X and Y element with chart area left and top.
Or allow only spacing config >=0.
The simplest solution seems to be setting includeInvisible
.
@kurkle what do you think?
includeVisible
sounds good to me. negative spacing is good for animations, so I would not like to limit that.
We must upgrade the minimum version of Chartjs to 3.8.0 where includeInvisible option has been added
This can be observed in the RTL sample for example: https://chartjs-chart-treemap.pages.dev/samples/rtl.html
This rect works: but the top/left row does not: