{"action":"closed","issue":{"url":"https://api.github.com/repos/tomauty/react-native-chart/issues/98","repository_url":"https://api.github.com/repos/tomauty/react-native-chart","labels_url":"https://api.github.com/repos/tomauty/react-native-chart/issues/98/labels{/name}","comments_url":"https://api.github.com/repos/tomauty/react-native-chart/issues/98/comments","events_url":"https://api.github.com/repos/tomauty/react-native-chart/issues/98/events","html_url":"https://github.com/tomauty/react-native-chart/issues/98","id":163747900,"number":98,"title":"Can x axis be configured to hide some of the labels for large data sets?","user":{"login":"stryecho","id":5504328,"avatar_url":"https://avatars.githubusercontent.com/u/5504328?v=3","gravatar_id":"","url":"https://api.github.com/users/stryecho","html_url":"https://github.com/stryecho","followers_url":"https://api.github.com/users/stryecho/followers","following_url":"https://api.github.com/users/stryecho/following{/other_user}","gists_url":"https://api.github.com/users/stryecho/gists{/gist_id}","starred_url":"https://api.github.com/users/stryecho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stryecho/subscriptions","organizations_url":"https://api.github.com/users/stryecho/orgs","repos_url":"https://api.github.com/users/stryecho/repos","events_url":"https://api.github.com/users/stryecho/events{/privacy}","received_events_url":"https://api.github.com/users/stryecho/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-07-04T22:23:55Z","updated_at":"2016-07-08T21:29:02Z","closed_at":"2016-07-08T21:29:02Z","body":"Is there a way to hide some of the x labels so that they don't get clipped?  I'm using a test case with a couple hundred data points like so:\r\n\r\n        let data = [\r\n           [0, 1], [0, 1]...repeat a couple hundred times...[0, 1]\r\n        ];\r\n        resultsBody = <Chart style={styles.chart}\r\n                        data={dataPoints}\r\n                        verticalGridStep={7}\r\n                        type='line'\r\n                        yAxisWidth={40}\r\n                        showGrid={false}\r\n                      />\r\n\r\nWhen I render the chart, the lines are all clipped, as expected:\r\n\r\n![toomanylabels](https://cloud.githubusercontent.com/assets/5504328/16570451/98cb19ce-4202-11e6-8026-fd184d00952f.png)\r\n\r\nI'm looking for a way to show just every nth label.  In the previous (1.1.4) version, I was able to get around the issue by specifying an empty string for labels I did not want to present.  It would then render only the labels that were defined.  However, in the current 1.0.1-beta version, when I render the chart, the empty labels still seem to affect the defined labels by clipping them:\r\n\r\n![setsomeemptylabels](https://cloud.githubusercontent.com/assets/5504328/16570480/275993a0-4203-11e6-9b1e-ebdf811e894f.png)\r\n\r\n"}}
{"actor":{"display_login":"tomauty"}}