Skip to content
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

Negative Number Height of Bar Makes Transparent Color #234

Open
owenzhao opened this issue May 7, 2023 · 4 comments
Open

Negative Number Height of Bar Makes Transparent Color #234

owenzhao opened this issue May 7, 2023 · 4 comments

Comments

@owenzhao
Copy link

owenzhao commented May 7, 2023

This issue was first mentioned by myself on #218. I file it again as in Xcode 14, I could not use 2.10.0 as workaround. In Xcode 14, 2.10.0 crashed.

So is that possible not use makes the color working with Negative Number Height of Bar?

Xcode 14.3 (14E222b)
macOS Ventura 13.3.1 (a) (22E772610a)
SwiftUICharts 2.10.2

@tolteste
Copy link

tolteste commented Mar 8, 2024

experiencing the same issue, have you found a workaround?

@owenzhao
Copy link
Author

owenzhao commented Mar 8, 2024

experiencing the same issue, have you found a workaround?

For higher version of macOS(13+), you can try the native Charts framework. And still use 2.10.0 for the lower version.

@tolteste
Copy link

Sadly we have to support iOS 15+ so we can't use native Charts. I've fixed the version to 2.10.0 and it's displaying negative values.

@owenzhao
Copy link
Author

Sadly we have to support iOS 15+ so we can't use native Charts. I've fixed the version to 2.10.0 and it's displaying negative values.

You can use them together. With something like

if #available(macOS 14.0, *)
//SwiftUI native charts
else 
this charts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants