{"action":"created","issue":{"url":"https://api.github.com/repos/capitalone/react-native-pathjs-charts/issues/28","repository_url":"https://api.github.com/repos/capitalone/react-native-pathjs-charts","labels_url":"https://api.github.com/repos/capitalone/react-native-pathjs-charts/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/capitalone/react-native-pathjs-charts/issues/28/comments","events_url":"https://api.github.com/repos/capitalone/react-native-pathjs-charts/issues/28/events","html_url":"https://github.com/capitalone/react-native-pathjs-charts/issues/28","id":193791217,"number":28,"title":"Issues with Y Axis Values & Decimal Values Using Bar Chart","user":{"login":"MattyK14","id":16196171,"avatar_url":"https://avatars.githubusercontent.com/u/16196171?v=3","gravatar_id":"","url":"https://api.github.com/users/MattyK14","html_url":"https://github.com/MattyK14","followers_url":"https://api.github.com/users/MattyK14/followers","following_url":"https://api.github.com/users/MattyK14/following{/other_user}","gists_url":"https://api.github.com/users/MattyK14/gists{/gist_id}","starred_url":"https://api.github.com/users/MattyK14/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MattyK14/subscriptions","organizations_url":"https://api.github.com/users/MattyK14/orgs","repos_url":"https://api.github.com/users/MattyK14/repos","events_url":"https://api.github.com/users/MattyK14/events{/privacy}","received_events_url":"https://api.github.com/users/MattyK14/received_events","type":"User","site_admin":false},"labels":[{"id":416411313,"url":"https://api.github.com/repos/capitalone/react-native-pathjs-charts/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-06T14:49:23Z","updated_at":"2017-02-17T14:44:08Z","closed_at":null,"body":"There's an issue with the scale return for the Y axis values when using decimal numbers. \r\n![simulator screen shot dec 6 2016 11 07 05 am](https://cloud.githubusercontent.com/assets/16196171/20929654/558d1c9e-bba5-11e6-9803-9c674ec2c26d.png)\r\n\r\nWhen the scale is from 0-0.5, 0.3 on Y axis is rendered as 0.30000000000000004\r\n![simulator screen shot dec 6 2016 11 12 37 am](https://cloud.githubusercontent.com/assets/16196171/20929754/acc96170-bba5-11e6-8d2e-0ccfd0003ebc.png)\r\n\r\nWhen the scale is from 0-1, 0.6 is rendered as 0.6000000000000001 on the Y axis.\r\n![simulator screen shot dec 6 2016 11 19 12 am](https://cloud.githubusercontent.com/assets/16196171/20929804/d443faee-bba5-11e6-9d26-dd9eba2726fb.png)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/capitalone/react-native-pathjs-charts/issues/comments/280668275","html_url":"https://github.com/capitalone/react-native-pathjs-charts/issues/28#issuecomment-280668275","issue_url":"https://api.github.com/repos/capitalone/react-native-pathjs-charts/issues/28","id":280668275,"user":{"login":"Cody-G-G","id":9220445,"avatar_url":"https://avatars.githubusercontent.com/u/9220445?v=3","gravatar_id":"","url":"https://api.github.com/users/Cody-G-G","html_url":"https://github.com/Cody-G-G","followers_url":"https://api.github.com/users/Cody-G-G/followers","following_url":"https://api.github.com/users/Cody-G-G/following{/other_user}","gists_url":"https://api.github.com/users/Cody-G-G/gists{/gist_id}","starred_url":"https://api.github.com/users/Cody-G-G/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cody-G-G/subscriptions","organizations_url":"https://api.github.com/users/Cody-G-G/orgs","repos_url":"https://api.github.com/users/Cody-G-G/repos","events_url":"https://api.github.com/users/Cody-G-G/events{/privacy}","received_events_url":"https://api.github.com/users/Cody-G-G/received_events","type":"User","site_admin":false},"created_at":"2017-02-17T14:44:08Z","updated_at":"2017-02-17T14:44:08Z","body":"The `decimalPlaces` parameter sounds nice, and I think the default for it is fine as a static number, 2 making the most sense since on mobile devices the required precision would very rarely exceed that. However, I believe it should take effect not only when you have floating point values in your data set, but all the time. This is because it doesn't really have much to do with what the number of decimal places are for the elements in the dataset, since my dataset could be something like `(1, 50), (2, 85)`, and so even though my X axis datapoints don't have any decimal places, there will be numbers with decimal places in between them that will be displayed along the axis after those are calculated."}}
{"actor":{"display_login":"Cody-G-G"}}