{"action":"created","issue":{"url":"https://api.github.com/repos/masayuki0812/c3/issues/865","labels_url":"https://api.github.com/repos/masayuki0812/c3/issues/865/labels{/name}","comments_url":"https://api.github.com/repos/masayuki0812/c3/issues/865/comments","events_url":"https://api.github.com/repos/masayuki0812/c3/issues/865/events","html_url":"https://github.com/masayuki0812/c3/issues/865","id":53412094,"number":865,"title":"flow() with category-labels on the X-axis doesn't work","user":{"login":"jverelst","id":1706949,"avatar_url":"https://avatars.githubusercontent.com/u/1706949?v=3","gravatar_id":"","url":"https://api.github.com/users/jverelst","html_url":"https://github.com/jverelst","followers_url":"https://api.github.com/users/jverelst/followers","following_url":"https://api.github.com/users/jverelst/following{/other_user}","gists_url":"https://api.github.com/users/jverelst/gists{/gist_id}","starred_url":"https://api.github.com/users/jverelst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jverelst/subscriptions","organizations_url":"https://api.github.com/users/jverelst/orgs","repos_url":"https://api.github.com/users/jverelst/repos","events_url":"https://api.github.com/users/jverelst/events{/privacy}","received_events_url":"https://api.github.com/users/jverelst/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/masayuki0812/c3/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-01-05T16:13:50Z","updated_at":"2015-09-07T16:33:08Z","closed_at":null,"body":"Example code:\r\n```\r\nvar chart = c3.generate({\r\n    data: {\r\n        x: 'x',\r\n        columns: [\r\n            ['x', '2012-12-29', '2012-12-30', '2012-12-31'],\r\n            ['data1', 230, 300, 330],\r\n            ['data2', 190, 230, 200],\r\n            ['data3', 90, 130, 180],\r\n        ]\r\n    },\r\n    axis: {\r\n      x: {\r\n        type: 'category' // this needed to load string x value\r\n      }\r\n    }\r\n});\r\n\r\nsetTimeout(function () {\r\n    chart.flow({\r\n        columns: [\r\n            ['x', '2013-01-11', '2013-01-21'],\r\n            ['data1', 500, 200],\r\n            ['data2', 100, 300],\r\n            ['data3', 200, 120],\r\n        ],\r\n    });\r\n}, 1000);\r\n```\r\n\r\n## Expected behavior\r\nData flowing into the graph, new data added, with labels intact (the verbatim '2013-01-11' and '2013-01-21' values)\r\n\r\n## Actual behavior\r\nThe data is flowing into the graph, new data added, but he labels are changed to '2', '3', and '4' (I suspect these are the array-indexes for the data entries)\r\n\r\nOn a side-node: when flowing data into the graph, the datastructure 'chart.x()' contains arrays with length 5, while only 3 elements are shown. When flowing a lot of data into a chart (I'm using it to flow new data into the chart every second) this will result in a memory problem. But I don't know if this is a related problem to the one addressed above."},"comment":{"url":"https://api.github.com/repos/masayuki0812/c3/issues/comments/138336153","html_url":"https://github.com/masayuki0812/c3/issues/865#issuecomment-138336153","issue_url":"https://api.github.com/repos/masayuki0812/c3/issues/865","id":138336153,"user":{"login":"abhas9","id":3436431,"avatar_url":"https://avatars.githubusercontent.com/u/3436431?v=3","gravatar_id":"","url":"https://api.github.com/users/abhas9","html_url":"https://github.com/abhas9","followers_url":"https://api.github.com/users/abhas9/followers","following_url":"https://api.github.com/users/abhas9/following{/other_user}","gists_url":"https://api.github.com/users/abhas9/gists{/gist_id}","starred_url":"https://api.github.com/users/abhas9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abhas9/subscriptions","organizations_url":"https://api.github.com/users/abhas9/orgs","repos_url":"https://api.github.com/users/abhas9/repos","events_url":"https://api.github.com/users/abhas9/events{/privacy}","received_events_url":"https://api.github.com/users/abhas9/received_events","type":"User","site_admin":false},"created_at":"2015-09-07T16:33:08Z","updated_at":"2015-09-07T16:33:08Z","body":"After an hour of debugging I was able to fix this by setting a flag for incoming data through flow and checking the same in ```api.flow.js```\r\n\r\nYou may check the PR above. However since I am not familiar with c3.js code, I am not sure if this is a complete fix or just another hack. I would really appreciate if someone can please look into it and review."}}