Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Triangle markers that end on points rather than center on them #4935

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

Closed
nicolaskruchten opened this issue Jun 22, 2020 · 2 comments · Fixed by #5010
Closed

Triangle markers that end on points rather than center on them #4935

nicolaskruchten opened this issue Jun 22, 2020 · 2 comments · Fixed by #5010
Assignees
Labels
feature something new

Comments

@nicolaskruchten
Copy link
Contributor

In order to make an "arrow chart" out of a scatter trace, we need to be able to have arrowhead/triangle markers whose extreme end is at the point, rather than markers centered on a point: right now if I want an arrow from 10 to 20, the tip of the triangle overshoots.

I propose we add four new markers arrowhead-* for this purpose.

image

@nicolaskruchten nicolaskruchten added this to the v1.55.0 milestone Jun 22, 2020
@nicolaskruchten nicolaskruchten added the feature something new label Jun 22, 2020
@nicolaskruchten
Copy link
Contributor Author

nicolaskruchten commented Jun 22, 2020

Hmm, possible complication: the end of the underlying line might peek through from behind.

@nicolaskruchten nicolaskruchten modified the milestones: v1.55.0, v1.56.0 Jun 22, 2020
@nicolaskruchten
Copy link
Contributor Author

OK, as a compromise solution, let's come up with a "triangle to level" marker similar to this, so that the line won't show through as much unless the line thickness is disproportionately big compared to the marker size:

image

@nicolaskruchten nicolaskruchten modified the milestones: v1.56.0, v1.55.0 Jun 23, 2020
@nicolaskruchten nicolaskruchten removed this from the v1.55.0 milestone Jul 7, 2020
@archmoj archmoj self-assigned this Jul 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature something new
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants