[FEATURE]: Add `plotly_heatmapclick` event (similar to `plotly_treemapclick` / `plotly_sunburstclick`)
Les mainteneurs répondent en général sous 1 jour
@nojaf y travaille déjà.
Depuis le 14/1/2026.
Évaluation
Cette issue n'a pas encore été évaluée.
Description
Description
When using dragmode: "select", heatmaps do not fire plotly_click events for single clicks. This makes it impossible to handle both cell selection (drag) and single cell clicks in the same chart.
Treemap and Sunburst charts have dedicated click events (plotly_treemapclick, plotly_sunburstclick) that fire regardless of dragmode, but heatmaps have no equivalent.
Current Behavior
// With dragmode: "select"
graphDiv.on('plotly_click', (data) => {
// Never fires for heatmaps
});
graphDiv.on('plotly_selected', (data) => {
// Fires with undefined data on single clicks
});
Requested Behavior
Add a plotly_heatmapclick event (similar to how plotly_treemapclick works) that fires when clicking on a heatmap cell, regardless of dragmode setting.
graphDiv.on('plotly_heatmapclick', (data) => {
// data.points[0] contains { x, y, z, pointIndex, curveNumber, ... }
});
Why should this feature be added?
We're building reactive heatmap charts in marimo where users can:
- Drag to select a range of cells → works via
plotly_selected - Click a single cell to select it → does not work with
dragmode: "select"
Currently, users must drag even for single-cell selections, which is unintuitive.
Notes
If this feature is something the team would accept, I'm happy to submit a PR implementing it. Any pointers on where to start in the codebase would be appreciated (e.g., how plotly_treemapclick is implemented).
- Langage dominant
- JavaScript
- Étoiles
- 18.3k
- Forks
- 2k
- Merge moyen
- 1 j 19 h
- PR mergées (30 j)
- 21
Préparer son environnement
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de plotly/plotly.js
-
bug
Difficulté 1/5 Moins d'une heure Accessibilité débutants 85/100
Les mainteneurs répondent en général sous 1 jour
-
chore P3 plotly-internal size: 3 task
Difficulté 2/5 1-3 heures Accessibilité débutants 77/100
Les mainteneurs répondent en général sous 1 jour
-
chore P1 plotly-internal size: 1 task
Difficulté 1/5 Moins d'une heure Accessibilité débutants 82/100
Les mainteneurs répondent en général sous 1 jour
-
chore P3 plotly-internal size: 1 task
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
Les mainteneurs répondent en général sous 1 jour
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
plotly/plotly.js#7648 · 3 commentaires ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de plotly/plotly.js
Issues similaires
-
bug CI breakage triage needed
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
oppia/oppia#27517 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
draftomen enhancement size: S
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
andreagrandi/draftomen#761 ·
-
Remove the stale .eslintignoreOuverte
Difficulté 1/5 Moins d'une heure Accessibilité débutants 92/100
HarperFast/harper#2866 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 84/100
HarperFast/harper-pro#927 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 88/100
anthropics/skills#1897 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour