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

Duplicate data point requires for strokedash #3800

Open
apb-reports opened this issue Jan 9, 2023 · 3 comments
Open

Duplicate data point requires for strokedash #3800

apb-reports opened this issue Jan 9, 2023 · 3 comments
Labels
enhancement For enhancement of existing features

Comments

@apb-reports
Copy link

apb-reports commented Jan 9, 2023

0C3A9AE6-7D53-4D4E-B96E-15B54610A2DB
Hi,

I often like to present the current month or week with a dotted line to indicate that the current period is still active.

So I combine a solid line with a dashed line using: strokeDash

However, to get this working we must duplicate the data point where the date ends and starts. I understand why you have done this but most data sets are not usually like this.
Instead can you have an option to connect the 2 lines together and I think this should be the default.

Example:
https://vega.github.io/vega-lite/examples/line_dashed_part.html

@apb-reports apb-reports changed the title Duplicate data point requires for Duplicate data point requires for strokedash Jan 9, 2023
@olly-writes-code
Copy link

+1 on this!

@domoritz
Copy link
Member

I agree that it's not super convenient but it's unclear where the line should switch from continuous to stroked. Also, this will need to be done in Vega and would then automatically work in Vega-Lite. Moving there and changing from bug to enhancement.

@domoritz domoritz transferred this issue from vega/vega-lite Sep 28, 2023
@domoritz domoritz added the enhancement For enhancement of existing features label Sep 28, 2023
@olly-writes-code
Copy link

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement For enhancement of existing features
Projects
None yet
Development

No branches or pull requests

3 participants