{"action":"created","issue":{"url":"https://api.github.com/repos/kevinkhill/lavacharts/issues/144","repository_url":"https://api.github.com/repos/kevinkhill/lavacharts","labels_url":"https://api.github.com/repos/kevinkhill/lavacharts/issues/144/labels{/name}","comments_url":"https://api.github.com/repos/kevinkhill/lavacharts/issues/144/comments","events_url":"https://api.github.com/repos/kevinkhill/lavacharts/issues/144/events","html_url":"https://github.com/kevinkhill/lavacharts/issues/144","id":155520342,"number":144,"title":"multiple lines on a linechart","user":{"login":"slaapzakineentent","id":3659366,"avatar_url":"https://avatars.githubusercontent.com/u/3659366?v=3","gravatar_id":"","url":"https://api.github.com/users/slaapzakineentent","html_url":"https://github.com/slaapzakineentent","followers_url":"https://api.github.com/users/slaapzakineentent/followers","following_url":"https://api.github.com/users/slaapzakineentent/following{/other_user}","gists_url":"https://api.github.com/users/slaapzakineentent/gists{/gist_id}","starred_url":"https://api.github.com/users/slaapzakineentent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slaapzakineentent/subscriptions","organizations_url":"https://api.github.com/users/slaapzakineentent/orgs","repos_url":"https://api.github.com/users/slaapzakineentent/repos","events_url":"https://api.github.com/users/slaapzakineentent/events{/privacy}","received_events_url":"https://api.github.com/users/slaapzakineentent/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-18T14:45:58Z","updated_at":"2016-05-19T12:37:33Z","closed_at":null,"body":"Using version 3.0 in Laravel. This is a suggestion/enhancement.\r\n\r\nI want to make linechart with 2 (or more) lines that have their own different x axis.\r\nI found an example how to do that in Javascript\r\n[example](http://jsfiddle.net/asgallant/XF7JE/) \r\n[original question](http://stackoverflow.com/questions/18037925/google-chart-two-date-series-on-the-same-chart)\r\n\r\nTo do this they combine data sets/tables, can you make something like that for Laravel?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/kevinkhill/lavacharts/issues/comments/220311611","html_url":"https://github.com/kevinkhill/lavacharts/issues/144#issuecomment-220311611","issue_url":"https://api.github.com/repos/kevinkhill/lavacharts/issues/144","id":220311611,"user":{"login":"umbertix","id":708948,"avatar_url":"https://avatars.githubusercontent.com/u/708948?v=3","gravatar_id":"","url":"https://api.github.com/users/umbertix","html_url":"https://github.com/umbertix","followers_url":"https://api.github.com/users/umbertix/followers","following_url":"https://api.github.com/users/umbertix/following{/other_user}","gists_url":"https://api.github.com/users/umbertix/gists{/gist_id}","starred_url":"https://api.github.com/users/umbertix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/umbertix/subscriptions","organizations_url":"https://api.github.com/users/umbertix/orgs","repos_url":"https://api.github.com/users/umbertix/repos","events_url":"https://api.github.com/users/umbertix/events{/privacy}","received_events_url":"https://api.github.com/users/umbertix/received_events","type":"User","site_admin":false},"created_at":"2016-05-19T12:37:33Z","updated_at":"2016-05-19T12:37:33Z","body":"I haven't tried it, but wouldn't something along this line work?\r\n\r\n\r\n        foreach ($all_cut_distribution as $row) {\r\n            $cut_array[] = [$row->val, $row->total];\r\n        }\r\n\r\n        $cut_datatable = \\Lava::DataTable();\r\n        $cut_datatable->addStringColumn('cut name')\r\n                      ->addNumberColumn('cut#');\r\n\r\n        if (!empty($cut_array)) $cut_datatable->addRows($cut_array);"}}