Skip to content

Fix line plot labels#1893

Open
blerner wants to merge 2 commits into
drydockfrom
fix-line-plot-labels
Open

Fix line plot labels#1893
blerner wants to merge 2 commits into
drydockfrom
fix-line-plot-labels

Conversation

@blerner

@blerner blerner commented Jul 17, 2026

Copy link
Copy Markdown
Member

is from-list.labeled-line-plot supposed to show labels onHover?

It doesn’t right now. I can easily duplicate the behavior by overlaying it atop a labeled-scatter-plot, and the labeled-line-plot method isn’t even documented so maybe we should remove it and I can use the overlayed plot instead?

This would almost work, except that it would create two plots and therefore affect the legend. It also means that line-plot().labels() was also broken and should be fixed.

This PR fixes labels to work properly by ensuring that the dots will be visible. It also cleans up some redundant list-element checks (that our chart-utils annotations already check for us)

Ben Lerner added 2 commits July 17, 2026 12:33
…g dots to hover over.

We agreed that the visual behavior should be visually equivalent to render-charts([list: line-plot, labeled-scatter-plot]) -- i.e.,
the dots should always be visible, and therefore always hoverable.  This is different behavior than GCharts had (where the dots
were invisible).  I'm handling this by making the pointsize be optional; the point-size method and the labels method both
set it to some() value, so that having labels implies having visible points.
…library annotations do this for us already.
@blerner
blerner requested a review from jpolitz July 17, 2026 16:35
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.

1 participant