-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Heatmap suppress hovers on missing data #4226
Comments
We'll need a new attribute for this - exposed in all 2d-z trace types (heatmap, contour, contourcarpet, histogram2d*, surface). Anyone want to take a shot at naming this new attribute? e.g. In relation to #3035 and #975, maybe this new attribute could be a hovernan: 'blank'
// would show `z: blank` in the hover label
hovernan: ''
// or maybe handle
hovernan: null
// to omit the `z: ` line in the hover label. Moveover, should this new attribute only affect hover labels generated via // should
hovernan: '',
hovertemplate: 'f(%{x},%{y}) = %{z}'
// show: `f(1,1) = NaN`
// OR: `f(1,1) = ''` ? |
Or wait, looks like this ticket actually wants to suppress the entire hover label (not just the Perhaps, in this case a boolean makes more sense: For example: |
What about |
Or |
can we reuse |
like |
I like it. And I see |
@emmanuelle would you mind testing the hover behaviour on missing points using this codepen? Updated the demo link. |
A trace-by-trace flag to disable hovers on heatmaps when the z value is null/NaN
The text was updated successfully, but these errors were encountered: