In 12:05 , Just set the value unit to ".hour" will make the rule mark placed in the middle of BarMark. RuleMark(x: .value("Hour", currentActiveItem.hour, unit: .hour))
@Kavsoft2 жыл бұрын
Yes !!! Thanks for Sharing !!! More to discover on Xcode 14 !!!
@ConnorW82 жыл бұрын
pin-worthy comment
@Stephen2697.2 жыл бұрын
Awesome, fantastic observing your coding style. Learned loads of neat swiftui tricks. Thank you for sharing - Opening Xcode 14 right now!
@alaxhenry01212 жыл бұрын
Recently I learned many of amazing swift skill from you. I appreciate it Kavsoft :) Thank you and have a good day!!!
@TheSouza612 жыл бұрын
Awesome... Thanks for developing this kind of content..
@dev_jeongdaeri2 жыл бұрын
Always thanks 🙏😍
@AntonDobrynin Жыл бұрын
Thanks! I hate graphs and u really save my time!
@Mahadev-x7u2 жыл бұрын
Thank you so much Balaji…✨🔥💯❤️
@claudiocantieni36262 жыл бұрын
Thanks!
@zehaolee72012 жыл бұрын
thanks, it's really beautiful.
@juancarlosrangel2128 Жыл бұрын
Charts is only available for iOS 16 +
2 жыл бұрын
New Window, Windows please as a POI's view (tables) 😉👍 Is SwiftUI 4.0 on Monterey?
@arturo73922 жыл бұрын
Can you add to the line graph a little fading color like CoinMarketCap?
@gastonf236 ай бұрын
anyone with this Error message? The compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
@faxntv73522 жыл бұрын
super nice video, just a quick question, in your graph the last xlabel or group is cut (8...) do you know how to fix that?
@amirsayed11862 жыл бұрын
I followed the tutorial, but I have an issue, for me the RuleMark annotations showing the views count doesn't get on top of the chart and affects its width when on first and last elements, applying a zIndex didn't change anything.. do you have any suggestion?
@darrenkeverne Жыл бұрын
Great video, learnt a lot, but yeah, I get the same problem, so it seems does Natan Felipe below, seems the view is trying to render the annotation which doesn't quite fit, so it moves the chart over to align it. In the video it seems the annotation can go outside of the bounds of the chart?
@leandro54063 ай бұрын
same issue, can't figure out how to fix that
@sparshgupta3922 Жыл бұрын
Hi, Great Video as usual! I'm encountering one problem: the box with the data comes above the graph and doesn't get shown. I've written the same code, It would be really great if someone help me here!
@ehzihsux10907 ай бұрын
same issue
@kironet9 ай бұрын
Won't this crash the app with error "index out of range" when you quickly(faster than the DispatchQueue delay) change tabs that have different amount of data?
@natefarrell96232 жыл бұрын
Amazing! Using that same DragGesture logic do you think it would be possible to implement chart zooming?
@FRkiddo Жыл бұрын
more chart videos please!
@HH2NYC2 жыл бұрын
Great tutorial! Could you give any advice on how I can skip every other label on the x-axis?
@Kavsoft2 жыл бұрын
.chartXAxis(.hidden)
@HH2NYC2 жыл бұрын
@@Kavsoft But that hides the complete axis. I just want to skip every second label on this axis (e.g. not "A", "B", "C", "D", "E" but "A", "C", "E").
@TheseEyesSeeDarknessClearly72 жыл бұрын
Is there a way to hide the values on the chart? I would like to move the y axis values to the top of each point on the chart and hide the x axis values
@TheseEyesSeeDarknessClearly72 жыл бұрын
Nevermind I found it. Just add the chartXAxis(.hidden) modifier to Chart
@in57862 жыл бұрын
Thanks your sharing,but too bad it doesn't work on iOS 15.Can you recommend to draw Line Chart method for iOS15 please
@Kavsoft2 жыл бұрын
Check this video kzbin.info/www/bejne/q4aQnZhqgK2gpdk Usage kzbin.info/www/bejne/sJatgquDYpmigsU
@natanfelipe30022 жыл бұрын
I don’t know why but my graph keeps moving when the rule mark shows in the line’s edges
@Dupernite9 ай бұрын
I know it's been a year, but I'm having the same issue, did you find a solution?
@natanfelipe30029 ай бұрын
@@Dupernite no bro, it’s been a year and I’m still looking for the solution :/
@natanfelipe30029 ай бұрын
@@Dupernite I’m joking, but I really don’t remember how I fixed this. I’m sorry
@Dupernite9 ай бұрын
no worries, thanks for actually responding!@@natanfelipe3002
@0keyman10107 ай бұрын
@@Dupernite I know it's been a month, but I'm having the same issue, did you find a solution? :)
@sprytz932 жыл бұрын
I have problem with for(index,_), I can't do that. Do you think is some problem with Xcode 14.0? Thanks and awesome video!
@Kavsoft Жыл бұрын
Could you explain a little bit more about your issue?Because I couldn’t get it
@sprytz93 Жыл бұрын
@@Kavsoft I don't know why but when I write "for(index, _)" for example in the .onChange, like your line 66. I have "index" that is not highlighted on purple. I checked all my code different time.
@sprytz93 Жыл бұрын
@@Kavsoft Ok , I supported you with Patreon, thank for sharing all your information and quality for the projects, I really love. I checked my code with yours and I tried to change every part with yours, but the canvas didn't show me the chart. So I tried to start the simulation and all work. When I came back to the project the canvas start to work. I think it was a bug. Thanks
@tarun3105 Жыл бұрын
@@sprytz93 I don't know why but when I write "for(index, _)" for example in the .onChange, like your line 66. I have "index" that is not highlighted on purple. I checked all my code different time. same for me , what was the issue if you can please tell thanks
@melAncHOLY_MAN2 жыл бұрын
Hi. Great Video Kavsoft! How can I add a Average Line into a Barchart? And also add a explicit y-axis-label-value to this average horizontal line? Like the Charts in Screentime. Thanks, you are amazing 💪🏻
@DevdeTestests Жыл бұрын
probably just calculate it yourself and add it as RuleMark with custom annotation?
@succeeder30442 жыл бұрын
is this xcode 14 beta?
@Kavsoft2 жыл бұрын
Yes
@succeeder30442 жыл бұрын
@@Kavsoft alright
@ehzihsux10907 ай бұрын
I don’t know why but my graph keeps moving when the rule mark shows in the line’s edges
@leandro54063 ай бұрын
same, probably a higher xcode version change... could you fix it?