Skip to content

Support automatic control of labels density to avoid overlap #1679

@guidocioni

Description

@guidocioni

In geographical plots (but I think this would also benefit other types of plot types) it is useful to automatically reduce the density of labels so that the plot become more readable. The density should be then automatically adjusted depending on the zoom level. This is something already implemented in libraries like plotly or leaflet: here is a demonstration.

Screen.Recording.2025-09-29.at.11.12.02.mov

Just for reference this is the current behaviour in hvplot (I don't know if the density reduction while zooming is expected or just a bug in my renderer).

Screen.Recording.2025-09-29.at.11.14.10.mov

This could be activated with a boolean.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions