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

Lollipop chart #417

Open
kMutagene opened this issue Sep 20, 2023 · 4 comments
Open

Lollipop chart #417

kMutagene opened this issue Sep 20, 2023 · 4 comments

Comments

@kMutagene
Copy link
Member

kMutagene commented Sep 20, 2023

Description

A Lollipop chart is a categorical chart that is basically a bar chart replaced by points being connected by a line to the zero-line of the reference axis representing the data. It can be helpful to reduce visual noise when all values have a similar height [1].

Example:

Pointers

  • Ideally, you start prototyping in a scripting or notebook environment where you can iterate fast. installation instructions can be found here: https://plotly.net/#Installation
  • Charts like this that are using baseline trace types to create a new chart type should only be implemented in the top-level Chart API. An example where this is already done is the Range chart that combines a set of differently styled line charts.
  • When possible, use #IConvertible for data input, as this allows for strings, number types such as int and float, and DateTime.

References

Hints (click to expand if you need additional pointers)
  • The most suitable base chart for this is a set of line charts that each connect the zero line to a data point
  • The high-level function should look quite similar to the base implementation of Chart.Bar
@kMutagene kMutagene added Difficulty: Beginner Hackathon projects with beginner difficulty FsLab Hackathon 2023 Implementation projects for the 2023 FsLab Hackathon Status: Available labels Sep 20, 2023
@Ben757
Copy link

Ben757 commented Sep 30, 2023

Working on it
#FsLabHackathon2023

@kMutagene
Copy link
Member Author

Hey @Ben757. Are you still planning to finish this? If not, I would greatly appreciate if you could link what you ended up with during the hackathon (e.g. a script or notebook you worked in) so others can use it as a foundation to tackle this chart. If also do not have anything to link, no worries, please just tell me that this issue is up-for-grabs again. Thanks ❤️

@kMutagene kMutagene added this to the Plotly.NET 5.0 milestone Feb 5, 2024
@kMutagene
Copy link
Member Author

I hope it is okay to assume that i can move this into the v5 milestone and start working on it, if that is not the case, please leave a message

@kMutagene kMutagene added Type: Enhancement Area: Core API and removed Status: In Progress Difficulty: Beginner Hackathon projects with beginner difficulty FsLab Hackathon 2023 Implementation projects for the 2023 FsLab Hackathon labels Feb 5, 2024
@kMutagene
Copy link
Member Author

Here, basically the same applies as in #418. The line should be implemented as a shape, as the points should be a single trace. This needs the shape.layer.between attribute, which needs plotly.js 2.31, which will not be supported in v5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants