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

test tip for primitive data #1646

Merged
merged 1 commit into from
May 27, 2023
Merged

test tip for primitive data #1646

merged 1 commit into from
May 27, 2023

Conversation

mbostock
Copy link
Member

This initially surprised me, but now I think it might be desirable/acceptable: if the mark has primitive data, we consider it to be “textual”, and hence default the title channel to identity. And hence the tip displays the data rather than the channels. If the mark has primitive data, then maybe it’s unlikely that the channels would show anything else interesting? So this might be a reasonable default. But I can’t think of a way to opt-out of this behavior and show all channels, either, since the title option isn’t visible to the derived tip—it can only see the data and the channels…

@mbostock mbostock requested a review from Fil May 27, 2023 17:40
@Fil
Copy link
Contributor

Fil commented May 27, 2023

Yes, similar to what happens with a raster mark with data = volcano.values (or rather, when #1634 is fixed).

@mbostock mbostock force-pushed the mbostock/fix-dotx-tip-title branch from 1cc42a0 to 087b340 Compare May 27, 2023 23:37
@mbostock mbostock enabled auto-merge (squash) May 27, 2023 23:39
@mbostock mbostock merged commit a091f70 into main May 27, 2023
@mbostock mbostock deleted the mbostock/fix-dotx-tip-title branch May 27, 2023 23:40
chaichontat pushed a commit to chaichontat/plot that referenced this pull request Jan 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants