{"id":36198,"date":"2022-06-14T17:20:15","date_gmt":"2022-06-14T21:20:15","guid":{"rendered":"https:\/\/mjtsai.com\/blog\/?p=36198"},"modified":"2022-06-24T14:53:46","modified_gmt":"2022-06-24T18:53:46","slug":"swift-charts","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2022\/06\/14\/swift-charts\/","title":{"rendered":"Swift Charts"},"content":{"rendered":"<p><a href=\"https:\/\/developer.apple.com\/videos\/play\/wwdc2022\/10136\/\">Hello Swift Charts<\/a>:<\/p>\n<blockquote cite=\"https:\/\/developer.apple.com\/videos\/play\/wwdc2022\/10136\/\"><p>Say hello to Swift Charts &mdash; a flexible framework that helps you create charts entirely in SwiftUI that look and feel right at home on all Apple platforms. Discover how you can use compositional syntax to make informative, delightful, and accessible charts with less code. We&rsquo;ll share the building blocks for making visualizations with Swift Charts, and explore how you can change your charts&rsquo; design with a simple modifier. We&rsquo;ll also take you through the latest updates to Xcode Previews to help you chart a path toward an engaging experience.<\/p><\/blockquote>\n\n<p><a href=\"https:\/\/developer.apple.com\/videos\/play\/wwdc2022\/10137\/\">Swift Charts: Raise the bar<\/a>:<\/p>\n<blockquote cite=\"https:\/\/developer.apple.com\/videos\/play\/wwdc2022\/10137\/\"><p>Dive deep into data visualizations: Learn how Swift Charts and SwiftUI can help your apps represent complex datasets through a wide variety of chart options. We&rsquo;ll show you how to plot different kinds of data and compose marks to create more elaborate charts. We&rsquo;ll also take you through Swift Charts&rsquo; extensive chart customization API to help you match the style of your charts to your app.<\/p><\/blockquote>\n\n<p><a href=\"https:\/\/nilcoalescing.com\/blog\/BuildAndStyleAChartWithSwiftChartsFramework\/\">Matthaus Woolard<\/a>:<\/p>\n<blockquote cite=\"https:\/\/nilcoalescing.com\/blog\/BuildAndStyleAChartWithSwiftChartsFramework\/\"><p>From my quick look over the API, the framework can provide a lot more than the basic graphics generated by apps like Numbers etc. In this post I would like to share my initial experiments with the APIs.<\/p><p>[&#8230;]<\/p><p>You can find the code for this chart in our <a href=\"https:\/\/github.com\/NilCoalescing\/SwiftUI-Code-Examples\/tree\/main\/BuildAndStyleAChartWithSwiftChartsFramework\">GitHub project<\/a>, this includes the code to download and parse the CSV file.<\/p><\/blockquote>\n\n<p><a href=\"https:\/\/twitter.com\/RonAvitzur\/status\/1535061818556973056\">Ron Avitzur<\/a>:<\/p>\n<blockquote cite=\"https:\/\/twitter.com\/RonAvitzur\/status\/1535061818556973056\">\n<p>I&rsquo;ve worked on math &amp; data visualization for 35 years, and the simplicity and power of the Swift Charts API is truly a thing of beauty, as are the visualizations it creates.<\/p>\n<\/blockquote>\n\n<p>It <a href=\"https:\/\/twitter.com\/jordibruin\/status\/1536805246030295048\">does not include pie charts<\/a>.<\/p>\n\n<p id=\"swift-charts-update-2022-06-24\">Update (2022-06-24): <a href=\"https:\/\/nilcoalescing.com\/blog\/PlottingDataDistributionsWithSwiftCharts\/\">Matthaus Woolard<\/a>:<\/p>\n<blockquote cite=\"https:\/\/nilcoalescing.com\/blog\/PlottingDataDistributionsWithSwiftCharts\/\">\n<p>To build a histogram, I need to group my data into bins and count how many samples are within each bin.<\/p>\n<\/blockquote>\n<p>He also demonstrates a 2D density plot.<\/p>","protected":false},"excerpt":{"rendered":"<p>Hello Swift Charts: Say hello to Swift Charts &mdash; a flexible framework that helps you create charts entirely in SwiftUI that look and feel right at home on all Apple platforms. Discover how you can use compositional syntax to make informative, delightful, and accessible charts with less code. We&rsquo;ll share the building blocks for making [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"2022-06-14T21:20:19Z","apple_news_api_id":"57fe4ab1-4421-4903-981e-360beffff855","apple_news_api_modified_at":"2022-06-24T18:53:52Z","apple_news_api_revision":"AAAAAAAAAAAAAAAAAAAAAA==","apple_news_api_share_url":"https:\/\/apple.news\/AV_5KsUQhSQOYHjYL7__4VQ","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[4],"tags":[31,2185,30,2223,71,2231,901,1812],"class_list":["post-36198","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-ios","tag-ios-16","tag-mac","tag-macos-13-ventura","tag-programming","tag-swift-charts","tag-swift-programming-language","tag-swiftui"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/36198","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=36198"}],"version-history":[{"count":2,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/36198\/revisions"}],"predecessor-version":[{"id":36335,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/36198\/revisions\/36335"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=36198"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=36198"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=36198"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}