react-native-ios-charts icon indicating copy to clipboard operation
react-native-ios-charts copied to clipboard

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

Open prithsharma opened this issue 8 years ago • 3 comments

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

prithsharma avatar Nov 22 '16 11:11 prithsharma

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 avatar Dec 05 '16 02:12 razor1895

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

prithsharma avatar Dec 06 '16 17:12 prithsharma

@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

razor1895 avatar Dec 07 '16 13:12 razor1895