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

Line Chart dataset doesn't accept hex codes in colors attribute #70

Open
prithsharma opened this issue Nov 22, 2016 · 3 comments
Open

Comments

@prithsharma
Copy link
Collaborator

prithsharma commented Nov 22, 2016

The app crashes on this line when colors are given in hex code format. When given in rgba, it works fine.
A little surprising because other charts(I tested with Pie and Horizontal Bar) don't have this issue - they work with hex colors well.

Version 0.3.0

@razor1895
Copy link

hey, dude, how did you make this module work, I tried hard but still got swift compile error.... if you have any ideas on how solve this, please let me know, great thanks!

@prithsharma
Copy link
Collaborator Author

@razor1895 Sorry to hear that. Can you please be a little more specific about the error and we can see from there?

@razor1895
Copy link

@prithsharma I solved this by changing the react-native-ios-charts version to 0.2.7 and the charts version to 2.2.3. Then build with Xcode 7 and it works.

Here's my podfile

use_frameworks!

target 'Muyi' do
  pod 'SwiftyJSON', '2.3.1'
  pod 'Charts', '2.2.3'
end

@prithsharma Thank you anyway, and hope my solution can help someone

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