{"action":"created","issue":{"url":"https://api.github.com/repos/tomauty/react-native-chart/issues/61","repository_url":"https://api.github.com/repos/tomauty/react-native-chart","labels_url":"https://api.github.com/repos/tomauty/react-native-chart/issues/61/labels{/name}","comments_url":"https://api.github.com/repos/tomauty/react-native-chart/issues/61/comments","events_url":"https://api.github.com/repos/tomauty/react-native-chart/issues/61/events","html_url":"https://github.com/tomauty/react-native-chart/issues/61","id":143488236,"number":61,"title":"crashed while all chartData.data values are 0","user":{"login":"kkx","id":1530467,"avatar_url":"https://avatars.githubusercontent.com/u/1530467?v=3","gravatar_id":"","url":"https://api.github.com/users/kkx","html_url":"https://github.com/kkx","followers_url":"https://api.github.com/users/kkx/followers","following_url":"https://api.github.com/users/kkx/following{/other_user}","gists_url":"https://api.github.com/users/kkx/gists{/gist_id}","starred_url":"https://api.github.com/users/kkx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kkx/subscriptions","organizations_url":"https://api.github.com/users/kkx/orgs","repos_url":"https://api.github.com/users/kkx/repos","events_url":"https://api.github.com/users/kkx/events{/privacy}","received_events_url":"https://api.github.com/users/kkx/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/tomauty/react-native-chart/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"tomauty","id":1112872,"avatar_url":"https://avatars.githubusercontent.com/u/1112872?v=3","gravatar_id":"","url":"https://api.github.com/users/tomauty","html_url":"https://github.com/tomauty","followers_url":"https://api.github.com/users/tomauty/followers","following_url":"https://api.github.com/users/tomauty/following{/other_user}","gists_url":"https://api.github.com/users/tomauty/gists{/gist_id}","starred_url":"https://api.github.com/users/tomauty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomauty/subscriptions","organizations_url":"https://api.github.com/users/tomauty/orgs","repos_url":"https://api.github.com/users/tomauty/repos","events_url":"https://api.github.com/users/tomauty/events{/privacy}","received_events_url":"https://api.github.com/users/tomauty/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2016-03-25T12:18:35Z","updated_at":"2016-03-25T13:44:44Z","closed_at":null,"body":"Hi, \r\nI get a strange error while i am trying to render a chart with all 0s in y-axis. I would expect a straight line on the x-axis but get the following error. Is this caused due to my misuse of the lib or to some bugs? \r\n\r\n2016-03-25 13:10:53.784 [info][tid:com.facebook.React.JavaScript] [ 'Thu Mar 24 2016 13:00:00',\r\n  'Thu Mar 24 2016 14:00:00',\r\n  'Thu Mar 24 2016 15:00:00',\r\n  'Thu Mar 24 2016 16:00:00',\r\n  'Thu Mar 24 2016 17:00:00',\r\n  'Thu Mar 24 2016 18:00:00',\r\n  'Thu Mar 24 2016 19:00:00',\r\n  'Thu Mar 24 2016 20:00:00',\r\n  'Thu Mar 24 2016 21:00:00',\r\n  'Thu Mar 24 2016 22:00:00',\r\n  'Thu Mar 24 2016 23:00:00',\r\n  'Fri Mar 25 2016 00:00:00',\r\n  'Fri Mar 25 2016 01:00:00',\r\n  'Fri Mar 25 2016 02:00:00',\r\n  'Fri Mar 25 2016 03:00:00',\r\n  'Fri Mar 25 2016 04:00:00',\r\n  'Fri Mar 25 2016 05:00:00',\r\n  'Fri Mar 25 2016 06:00:00',\r\n  'Fri Mar 25 2016 07:00:00',\r\n  'Fri Mar 25 2016 08:00:00',\r\n  'Fri Mar 25 2016 09:00:00',\r\n  'Fri Mar 25 2016 10:00:00',\r\n  'Fri Mar 25 2016 11:00:00',\r\n  'Fri Mar 25 2016 12:00:00',\r\n  'Fri Mar 25 2016 13:00:00' ]\r\n2016-03-25 13:10:53.785 [info][tid:com.facebook.React.JavaScript] [ { name: 'LineChart',\r\n    color: 'gray',\r\n    lineWidth: 2,\r\n    showDataPoint: true,\r\n    data: [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] } ]\r\n2016-03-25 13:10:53.811 Sentry[12583:439969] *** Terminating app due to uncaught exception 'CALayerInvalidGeometry', reason: 'CALayer position contains NaN: [6.9 nan]'\r\n*** First throw call stack:\r\n(\r\n\t0   CoreFoundation                      0x0000000107ba2e65 __exceptionPreprocess + 165\r\n\t1   libobjc.A.dylib                     0x0000000106da6deb objc_exception_throw + 48\r\n\t2   CoreFoundation                      0x0000000107ba2d9d +[NSException raise:format:] + 205\r\n\t3   QuartzCore                          0x0000000109238a86 _ZN2CA5Layer12set_positionERKNS_4Vec2IdEEb + 152\r\n\t4   QuartzCore                          0x0000000109238bf9 -[CALayer setPosition:] + 44\r\n\t5   QuartzCore                          0x000000010923925d -[CALayer setFrame:] + 650\r\n\t6   Sentry                              0x0000000106747f3a -[RNChartPlotAreaView drawDataPoints:] + 3130\r\n\t7   Sentry                              0x0000000106743f0b -[RNChartPlotAreaView drawCharts] + 859\r\n\t8   Sentry                              0x000000010674cb58 -[RNChartView buildChart] + 5960\r\n\t9   Sentry                              0x000000010674b2fc -[RNChartView layoutSubviews] + 92\r\n\t10  UIKit                               0x00000001095774a3 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 703\r\n\t11  QuartzCore                          0x000000010924159a -[CALayer layoutSublayers] + 146\r\n\t12  QuartzCore                          0x0000000109235e70 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 366\r\n\t13  QuartzCore                          0x0000000109235cee _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 24\r\n\t14  QuartzCore                          0x000000010922a475 _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 277\r\n\t15  QuartzCore                          0x0000000109257c0a _ZN2CA11Transaction6commitEv + 486\r\n\t16  QuartzCore                          0x000000010925837c _ZN2CA11Transaction17observer_callbackEP19__CFRunLoopObservermPv + 92\r\n\t17  CoreFoundation                      0x0000000107ace367 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23\r\n\t18  CoreFoundation                      0x0000000107ace2d7 __CFRunLoopDoObservers + 391\r\n\t19  CoreFoundation                      0x0000000107ac3f2b __CFRunLoopRun + 1147\r\n\t20  CoreFoundation                      0x0000000107ac3828 CFRunLoopRunSpecific + 488\r\n\t21  GraphicsServices                    0x000000010b928ad2 GSEventRunModal + 161\r\n\t22  UIKit                               0x00000001094c0610 UIApplicationMain + 171\r\n\t23  Sentry                              0x000000010662be2f main + 111\r\n\t24  libdyld.dylib                       0x000000010b17a92d start + 1\r\n\t25  ???                                 0x0000000000000001 0x0 + 1\r\n)\r\nlibc++abi.dylib: terminating with uncaught exception of type NSException"},"comment":{"url":"https://api.github.com/repos/tomauty/react-native-chart/issues/comments/201285580","html_url":"https://github.com/tomauty/react-native-chart/issues/61#issuecomment-201285580","issue_url":"https://api.github.com/repos/tomauty/react-native-chart/issues/61","id":201285580,"user":{"login":"tomauty","id":1112872,"avatar_url":"https://avatars.githubusercontent.com/u/1112872?v=3","gravatar_id":"","url":"https://api.github.com/users/tomauty","html_url":"https://github.com/tomauty","followers_url":"https://api.github.com/users/tomauty/followers","following_url":"https://api.github.com/users/tomauty/following{/other_user}","gists_url":"https://api.github.com/users/tomauty/gists{/gist_id}","starred_url":"https://api.github.com/users/tomauty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomauty/subscriptions","organizations_url":"https://api.github.com/users/tomauty/orgs","repos_url":"https://api.github.com/users/tomauty/repos","events_url":"https://api.github.com/users/tomauty/events{/privacy}","received_events_url":"https://api.github.com/users/tomauty/received_events","type":"User","site_admin":false},"created_at":"2016-03-25T13:44:43Z","updated_at":"2016-03-25T13:44:43Z","body":"This is a bug. Will fix it soon."}}