{"action":"created","issue":{"url":"https://api.github.com/repos/ankane/chartkick/issues/258","repository_url":"https://api.github.com/repos/ankane/chartkick","labels_url":"https://api.github.com/repos/ankane/chartkick/issues/258/labels{/name}","comments_url":"https://api.github.com/repos/ankane/chartkick/issues/258/comments","events_url":"https://api.github.com/repos/ankane/chartkick/issues/258/events","html_url":"https://github.com/ankane/chartkick/issues/258","id":155700251,"number":258,"title":"Display google charts negative value left from positive instead of right","user":{"login":"TeTiRoss","id":9665395,"avatar_url":"https://avatars.githubusercontent.com/u/9665395?v=3","gravatar_id":"","url":"https://api.github.com/users/TeTiRoss","html_url":"https://github.com/TeTiRoss","followers_url":"https://api.github.com/users/TeTiRoss/followers","following_url":"https://api.github.com/users/TeTiRoss/following{/other_user}","gists_url":"https://api.github.com/users/TeTiRoss/gists{/gist_id}","starred_url":"https://api.github.com/users/TeTiRoss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TeTiRoss/subscriptions","organizations_url":"https://api.github.com/users/TeTiRoss/orgs","repos_url":"https://api.github.com/users/TeTiRoss/repos","events_url":"https://api.github.com/users/TeTiRoss/events{/privacy}","received_events_url":"https://api.github.com/users/TeTiRoss/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-19T10:08:51Z","updated_at":"2016-05-20T07:30:24Z","closed_at":null,"body":"I'm using chartkick gem for building Google Charts in my rails app. But I have a problem with displaying negative values in line chart. Negative value goes after the positive instead of before. \r\n\r\nI have tried to google how to fix it, but didn't find any solution.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ankane/chartkick/issues/comments/220537197","html_url":"https://github.com/ankane/chartkick/issues/258#issuecomment-220537197","issue_url":"https://api.github.com/repos/ankane/chartkick/issues/258","id":220537197,"user":{"login":"TeTiRoss","id":9665395,"avatar_url":"https://avatars.githubusercontent.com/u/9665395?v=3","gravatar_id":"","url":"https://api.github.com/users/TeTiRoss","html_url":"https://github.com/TeTiRoss","followers_url":"https://api.github.com/users/TeTiRoss/followers","following_url":"https://api.github.com/users/TeTiRoss/following{/other_user}","gists_url":"https://api.github.com/users/TeTiRoss/gists{/gist_id}","starred_url":"https://api.github.com/users/TeTiRoss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TeTiRoss/subscriptions","organizations_url":"https://api.github.com/users/TeTiRoss/orgs","repos_url":"https://api.github.com/users/TeTiRoss/repos","events_url":"https://api.github.com/users/TeTiRoss/events{/privacy}","received_events_url":"https://api.github.com/users/TeTiRoss/received_events","type":"User","site_admin":false},"created_at":"2016-05-20T07:30:24Z","updated_at":"2016-05-20T07:30:24Z","body":"@ankane yes, here is screenshot and code sample: \r\n![Image of Yaktocat]\r\n(http://i.stack.imgur.com/v6pTp.png)\r\n\r\n```ruby\r\n<%= line_chart([{name: 'name_1', data: @data_for_chart_1},\r\n                {name: 'name_2', data: @data_for_chart_2}], discrete: true,\r\n                xtitle: \"Cut Expenses By ($)\", ytitle: \"Max. Home Price ($)\",\r\n                colors: [\"#2E3192\", \"red\"], library: {title: \"Cutting Expenses Makes Higher Priced Homes Affordable\", curveType: \"none\", pointSize: 0, legend: { position: \"bottom\" }}, id: \"chart\" ) %>\r\n```\r\nI tried to change `discrete: true` to `false`, so it will be continuous axis, but in that way I have date in the tooltips. @data_for_chart_1 and @data_for_chart_2 are integer keys and values. \r\n```ruby\r\n{0=>173929, 70=>185474, 140=>197018, 210=>208563, 280=>220108, 350=>231653, 420=>243197, 490=>254742, 560=>266287, 630=>270900}\r\n```"}}
{"actor":{"display_login":"TeTiRoss"}}