nicolaskruchten / pivottable

Open-source Javascript Pivot Table (aka Pivot Grid, Pivot Chart, Cross-Tab) implementation with drag'n'drop.
https://pivottable.js.org/
MIT License
4.35k stars 1.08k forks source link

Drilldow on treemap #1135

Open miraks31 opened 5 years ago

miraks31 commented 5 years ago

Hi,

First, thank you for pivottable.js, this is a great library. I successfully enable drilldown on "table" (with clickCallback), on "subtotal" tables (with eventHandlers.click) and on "plotly graphs" (with plotly_click).

Now, I just need to add drilldown on "D3 treemap" but I don't know how to do. How can I catch an event when an area of the teemap is clicked?

Thank you in advance. Regards.

miraks31 commented 4 years ago

Doesn't anyone have an answer?

nicolaskruchten commented 4 years ago

You'll likely have to modify the treemap code to do this, as there are no click handlers built-in at the moment. Note that Plotly.js now supports treemaps so you might be able to add a treemap renderer to the Plotly renderers instead and use your existing solution for Plotly :)