Skip to content

Added Lollipop plot#4193

Merged
swharden merged 7 commits intoScottPlot:mainfrom
CoderPM2011:feat/Lollipop-chart
Aug 31, 2024
Merged

Added Lollipop plot#4193
swharden merged 7 commits intoScottPlot:mainfrom
CoderPM2011:feat/Lollipop-chart

Conversation

@CoderPM2011
Copy link
Contributor

resolve #4183

Copy the Lollipop Cookbook from scottplot 4 and adjust it slightly.

sample

from my added cookbook - Lollipop Plot Customizations

result image

image

sample code

double[] values = { 26, 20, 23, 7, 16 };
double[] positions = { 2, 4, 8, 10, 20 };
var lollipop = plt.Add.Lollipop(values, positions);
lollipop.Orientation = ScottPlot.Orientation.Horizontal;
lollipop.MarkerColor = ScottPlot.Colors.Red;
lollipop.MarkerSize = 10;

@swharden
Copy link
Member

Fantastic work @CoderPM2011, thanks so much! I really appreciate the cookbook recipe too. I'll merge this today and it will be in the next version I intend to publish this weekend 🚀

@swharden swharden enabled auto-merge (squash) August 31, 2024 21:14
@swharden swharden merged commit 1bec571 into ScottPlot:main Aug 31, 2024
@CoderPM2011 CoderPM2011 deleted the feat/Lollipop-chart branch September 1, 2024 06:48
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.

Lollipop chart

2 participants