V2 version of SwiftUI ChartView - #89
Conversation
satan87
commented
May 22, 2020
I believe this will break a lot of other PR. But looks cleaner, and easier so I don't mind adapting my PR. |
@AppPear With this in the works, should people hold off on PRs? Do you want to open up issues to break up this change and get help implementing it? |
satan87
commented
May 24, 2020
To participate in the new branch, how the best way to do it? |
AppPear
commented
May 24, 2020
Yes, please fork it and create a PR for the Thanks! |
satan87
commented
May 24, 2020
ok, I'll try working on the PieChart, but no promises;(. |
Maybe we could create chat somewhere to coordinate. |
AdrianBinDC
commented
May 25, 2020
@AppPear I love the philosophy re: building the charts w/ the bare minimum and building upon it. One suggestion I have is writing unit tests to go along with committed code, rather than treating it as an afterthought. I'll take a peek at code coverage and see what I can unearth that's testable. |
- write unit tests for CGPoint+Extension.swift - clean up formatting on CGPoint+Extension.swift
L1cardo
commented
May 25, 2020
Looking forward to this!! |
* Add ColorGradient example Add ColorGradient single color constructor Add preview for BarChart * Add PieChart Allow multi color for Pie and Bar Add linter
AppPear
commented
May 25, 2020
Thanks, I merged it! Only small issue was |
satan87
commented
May 25, 2020
The extension file wasn't in my commit;( sorry. |
- Wrote tests - Possible minor bug where there's an alpha missing on 32-bit colors?
satan87
commented
May 27, 2020
Hello, PS: |
kevinmun
commented
Jan 21, 2021
I see, I tested it out again, and it seems, it's ok if it's deployed to device. Somehow on preview / simulator, it appears as blank. Weird. |
JanC
commented
Jan 23, 2021
hey, is the v2 still being worked on or is this library not maintained anymore? |
Yes, currently I'm on organising a bigger help to maintain and take this lib to next level and release v2 as soon as possible |
ghost
commented
Jan 24, 2021
Prince2k3
commented
Jan 30, 2021
@AppPear I'd like to join as a member. I currently have a candlestick chart working using the new-version branch on my machine. I'm interested in helping out. I like to chat about data structure for support of that type of chart and others. |
AppPear
commented
Jan 31, 2021
Can you please join the slack channel? |
@AppPear |
AppPear
commented
Apr 5, 2021
m8xp0w3r
commented
Apr 7, 2021
Thank for the answer. |
now it is possible to add background lines precisely as charts are displayed at correct size also rewrote basics to conform with Shapes and Animatable protocol
rodri0315
commented
Aug 10, 2021
Hello! How's V2 going? Anything we can help? |
* feat: add linechart interaction point * feat: add ability to show current data point on linechart
* feat: new protocol for chained functions, and added support for explicit Y ranges. X coming as well * feat: add new axis interface (#253)
Co-authored-by: “Andras <“andras.samu@supercharge.io”>
Uh oh!
There was an error while loading. Please reload this page.
champagnepoon
commented
Mar 2, 2026
via email
您好,我是潘倩萍,我已经收到您的邮件,如果有问题我会尽快联系您的;如果有急事,烦请电话联系我,谢谢! |


The goal is to have a new more easily expandable codebase, setup with CI and test so PRs could be merged quicker and safer.
If you would like to help and participate in the new version you are very welcomed you can find project related tasks here or under the Issues with a
v2tagto submit your work please fork this repo and create a new branch from
new-versionbranch then update with your work and create a PR for thenew-versionbranch.If you work on a ticket please go to the project board and assign the ticket to yourself and move it to the in-progress column. If you are finished please assign the newly created PR to me and move your ticket to the ready-for-review column.
Join our Slack channel for day to day conversation and more insights:
slack invite link
New code proposal:
ChartViews
These chart views come with the bare minimum for a chart, so it can be easily built into custom user interfaces. We also build on them for the more complex chart widgets.
Data
xandyvalue.yvalue must be numeric (possibly floating point number)xcan be numeric or stringyvalues, 2)xandynumeric values 3) xstringandynumeric valuesBarchart:
Linechart:
Piechart:
Grid (not in beta 1)
barchartandlinechartCardview
xaxis values interactivelysmall,medium,largeChartData (beta 1 supports Chart init with [Double] only)
ChartData is an observable object so you can make state changes and it will be reflected now in the charts.
To initialise:
ChartData(_ data: [Double])and to make a state change: