SwiftUI Bar Chart with Customizations | Swift Charts

SwiftUI Bar Chart with Customizations | Swift Charts

Sean Allen

1 год назад

24,269 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Jim Cheseborough
Jim Cheseborough - 17.10.2023 15:18

How do you make more than one chart inside the same ForEach?

Ответить
Isaac L
Isaac L - 04.10.2023 23:24

thank sir

Ответить
Mark Filter
Mark Filter - 04.07.2023 22:41

Awesome tutorial. Another way you can get the dashed lines in the Legend is by using Path { }. Not sure if this will keep the formatting when I post it. This way, the dashed line will be displayed matching the RuleMark, if you make it dashed like you do in the video.
HStack {
Path { path in
path.move(to: CGPoint(x: 0, y: 7))
path.addLine(to: CGPoint(x: 35, y: 7))
}
.stroke(Color.secondary, style: StrokeStyle(lineWidth: 3, lineCap: .round, lineJoin: .round, dash: [3, 10]))
.frame(width: 50)
Text("Monthly Goal")
.foregroundStyle(Color.secondary)
.font(.caption)
Spacer()
}

Ответить
The McGlone Code Programming
The McGlone Code Programming - 09.05.2023 17:14

Dude, killer videos

Ответить
Aaron Anthony
Aaron Anthony - 19.01.2023 22:07

🥷

Ответить
s.tunahan üstüntepe
s.tunahan üstüntepe - 29.12.2022 15:52

Can't find 'Chart' in scope I'm getting an error I wonder how can I solve it?

Ответить
stammix
stammix - 29.12.2022 00:03

hi Sean,
are Charts a better way to create a weekly calendar than Grids are? with all the possible customizations you show and tease, I imagine a lot of usefull elements for building up a structure like calendars.

thanks

Ответить
Neha
Neha - 23.12.2022 16:11

Hi Sean, I have tried these two solution for that last label invisibility issue on x Axis
1. AxisValueLable(format: .dateTime.month(.narrow), multipleAlignment: .centre),
2. AxisValueLable(format: .dateTime.month(.narrow), horizontalSpacing: 10)

Ответить
Mark S
Mark S - 22.12.2022 23:36

😲 Longtime Objective-C/XCode dev - this may be the video that makes me learn Swift. That’s ridiculously easier. Great job as always.

Ответить
These Eyes See Darkness Clearly
These Eyes See Darkness Clearly - 10.12.2022 05:40

I wish there was a way to easily press the chart and see the exact number for each month. For when the rough estimate won’t cut it

Ответить
James Sedlacek
James Sedlacek - 08.12.2022 18:34

Instead of doing the workaround of rotating a diagonal line you could just use a RoundedRectangle

Ответить
Chris Nachtrieb
Chris Nachtrieb - 03.12.2022 00:32

Sean this is dope thank you! By chance, do you know if there is a way to manually set the X Axis scale instead of it just going by the data provided? For example if a chart is displaying monthly values for the current year we're in, & it's only February, the chart would look silly just having two massive bar marks representing January & February. Thanks!

Ответить
Mohammad Alhasson
Mohammad Alhasson - 01.12.2022 03:34

Brilliant ❤

Ответить
Flo writes Code
Flo writes Code - 30.11.2022 23:25

Great overview! This framework can be a bit overwhelming in the beginning, since it's so customisable.

Ответить
TheFistRZ
TheFistRZ - 30.11.2022 20:04

Very informative video! I was wondering if there is a way to make the charts swipable like they are in Apple's Health app? I have tried to find how to do this but I can't seem to find anyone doing it.

Ответить
Harold Davis
Harold Davis - 30.11.2022 19:25

🚀 Love it just started playing with this for an app. Great video! 🤘🏾

Ответить