{"action":"created","issue":{"url":"https://api.github.com/repos/Kozea/pygal/issues/263","labels_url":"https://api.github.com/repos/Kozea/pygal/issues/263/labels{/name}","comments_url":"https://api.github.com/repos/Kozea/pygal/issues/263/comments","events_url":"https://api.github.com/repos/Kozea/pygal/issues/263/events","html_url":"https://github.com/Kozea/pygal/issues/263","id":106146961,"number":263,"title":"Major X labels do not work for dateline","user":{"login":"psirotkin","id":7747812,"avatar_url":"https://avatars.githubusercontent.com/u/7747812?v=3","gravatar_id":"","url":"https://api.github.com/users/psirotkin","html_url":"https://github.com/psirotkin","followers_url":"https://api.github.com/users/psirotkin/followers","following_url":"https://api.github.com/users/psirotkin/following{/other_user}","gists_url":"https://api.github.com/users/psirotkin/gists{/gist_id}","starred_url":"https://api.github.com/users/psirotkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psirotkin/subscriptions","organizations_url":"https://api.github.com/users/psirotkin/orgs","repos_url":"https://api.github.com/users/psirotkin/repos","events_url":"https://api.github.com/users/psirotkin/events{/privacy}","received_events_url":"https://api.github.com/users/psirotkin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-12T10:42:34Z","updated_at":"2015-10-07T23:35:15Z","closed_at":null,"body":"Displaying only major labels works fine for me for line graphs, as well as for the Y values on date graphs. However, when I try displaying only makor labels on the X axis, the labels disappear altogether. The example is based on the [XY date sample code](http://www.pygal.org/en/latest/documentation/types/xy.html#date).\r\n\r\n    from datetime import date\r\n        dateline = pygal.DateLine(x_label_rotation=25, show_minor_x_labels=False)\r\n        dateline.x_labels = [\r\n            date(2013, 1, 1),\r\n            date(2013, 7, 1),\r\n            date(2014, 1, 1),\r\n            date(2014, 7, 1),\r\n            date(2015, 1, 1),\r\n            date(2015, 7, 1)\r\n        ]\r\n        dateline.x_labels_major = [\r\n            date(2013, 1, 1),\r\n            date(2015, 7, 1)\r\n        ]\r\n        dateline.add(\"Serie\", [\r\n            (date(2013, 1, 2), 213),\r\n            (date(2013, 8, 2), 281),\r\n            (date(2014, 12, 7), 198),\r\n            (date(2015, 3, 21), 120)\r\n        ])\r\n    dateline.render()"},"comment":{"url":"https://api.github.com/repos/Kozea/pygal/issues/comments/146367246","html_url":"https://github.com/Kozea/pygal/issues/263#issuecomment-146367246","issue_url":"https://api.github.com/repos/Kozea/pygal/issues/263","id":146367246,"user":{"login":"Resisty","id":5331616,"avatar_url":"https://avatars.githubusercontent.com/u/5331616?v=3","gravatar_id":"","url":"https://api.github.com/users/Resisty","html_url":"https://github.com/Resisty","followers_url":"https://api.github.com/users/Resisty/followers","following_url":"https://api.github.com/users/Resisty/following{/other_user}","gists_url":"https://api.github.com/users/Resisty/gists{/gist_id}","starred_url":"https://api.github.com/users/Resisty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Resisty/subscriptions","organizations_url":"https://api.github.com/users/Resisty/orgs","repos_url":"https://api.github.com/users/Resisty/repos","events_url":"https://api.github.com/users/Resisty/events{/privacy}","received_events_url":"https://api.github.com/users/Resisty/received_events","type":"User","site_admin":false},"created_at":"2015-10-07T23:35:15Z","updated_at":"2015-10-07T23:35:15Z","body":"DateLine x_labels also seem to have an off-by-one error:\r\n![graphs](https://cloud.githubusercontent.com/assets/5331616/10354062/227ae6bc-6d11-11e5-98dd-83378642d04b.png)\r\n\r\nHere I have data plotted from 2015-09-30 to 2015-10-07. All the data is on the graph, but the x_labels (and hoverable lines) only exist through 2015-10-06 so that the dots and labels are misaligned."}}