-
-
Notifications
You must be signed in to change notification settings - Fork 99
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
Combined bar and line chart #67
Labels
enhancement
New feature or request
Projects
Comments
This is something I want to implement when I have time. |
Merged
In v2.6 there is a slightly experimental new view modifier. BarChart(chartData: data)
.extraLine(chartData: data, legendTitle: "Test") {
extraLineData
} style: {
extraLineStyle
} private var extraLineData: [ExtraLineDataPoint] {
[ExtraLineDataPoint(value: 1),
ExtraLineDataPoint(value: 4),
ExtraLineDataPoint(value: 9),
ExtraLineDataPoint(value: 4),
ExtraLineDataPoint(value: 6),
ExtraLineDataPoint(value: 5),
ExtraLineDataPoint(value: 6)]
}
private var extraLineStyle: ExtraLineStyle {
ExtraLineStyle(lineColour: ColourStyle(colour: .blue),
lineType: .curvedLine,
lineSpacing: .bar,
yAxisTitle: "Bob",
yAxisNumberOfLabels: 7,
animationType: .raise,
baseline: .zero)
} It's currently undocumented, just ask if you need help. Thanks, |
Amazing! 🙌🏼 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Working with 2 data sets that should be displayed with a bar chart the grouped chart is perfect. Is it possible with the current setup to display a bar chart with a line chart overlaid?
The text was updated successfully, but these errors were encountered: