react-native-ios-charts
react-native-ios-charts copied to clipboard
Line Chart dataset doesn't accept hex codes in colors attribute
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
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!
@razor1895 Sorry to hear that. Can you please be a little more specific about the error and we can see from there?
@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