Skip to content
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

Labels text_color should also cycle through color when overlaid #5887

Closed
ahuang11 opened this issue Sep 15, 2023 · 1 comment · Fixed by #5888
Closed

Labels text_color should also cycle through color when overlaid #5887

ahuang11 opened this issue Sep 15, 2023 · 1 comment · Fixed by #5888
Labels
type: feature A major new feature

Comments

@ahuang11
Copy link
Collaborator

ahuang11 commented Sep 15, 2023

I expect the labels to match the scatter plot; the use case for this is something like https://depictdatastudio.com/directly-labeling-line-graphs/
image

import pandas as pd
import holoviews as hv
hv.extension("bokeh")

df = pd.DataFrame(
    {
        "City": ["Buenos Aires", "Brasilia", "Santiago", "Bogota", "Caracas"],
        "Country": ["Argentina", "Brazil", "Chile", "Colombia", "Venezuela"],
        "Latitude": [-34.58, -15.78, -33.45, 4.60, 10.48],
        "Longitude": [-58.66, -47.91, -70.66, -74.08, -66.86],
    }
)
ds = hv.Dataset(df)
(ds.to.scatter("Longitude", "Latitude") * ds.to.labels(["Longitude", "Latitude"], ["City"])).overlay()
image
@ahuang11 ahuang11 added TRIAGE Needs triaging type: feature A major new feature and removed TRIAGE Needs triaging labels Sep 15, 2023
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: feature A major new feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant