-
Notifications
You must be signed in to change notification settings - Fork 98
Add Chart.Residual – Modified Lollipop Chart Implementation #493
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
base: dev
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, but please do not set any defaults for legend grouping, see comments
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rename to just "residual.fsx", as the path will then be /distribution-charts/residual.html
on the hosted docs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also, add it to the 04_distribution-charts
solution folder
src/Plotly.NET/ChartAPI/Chart2D.fs
Outdated
|> GenericChart.mapTrace ( | ||
Trace2DStyle.Scatter( | ||
LegendGroup = (defaultArg GroupName "Datapoints"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To clarify from comment above, just pass ?LegendGroup = GroupName
, so the userchoice is respected, but no default is set. Same for any other legend group settings.
src/Plotly.NET/ChartAPI/Chart2D.fs
Outdated
?Name: string, | ||
?ReferenceName: string, | ||
?GroupName: string, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Renamed docs "residual-charts.fsx" to "residual.fsx" - Added residual.fsx to the 04_distribution-charts solution folder
- Avoid default grouping when legend groups are not given
@kMutagene I addressed the requested changes, please have a look. |
LegendGroup = (defaultArg GroupName "Reference Line"), | ||
LegendGroupTitle = (Title.init (Text = (defaultArg GroupName "Reference Line"))) | ||
?LegendGroup = LegendGroupReference, | ||
?LegendGroupTitle = if LegendGroupReference.IsSome then Some (Title.init (Text = LegendGroupReference.Value)) else None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Either make the title a separate argument or leave it out here. this still injects defaults not visible to the user, and might actually clash if i want to assign an already existing legendgroup that has a different title.
Description:
This PR adds Chart.Residual, a customized variant of the Lollipop chart (see #417) tailored for showcasing deviation of values to a reference values.
Key updates: