{"action":"closed","issue":{"url":"https://api.github.com/repos/masayuki0812/c3/issues/1626","repository_url":"https://api.github.com/repos/masayuki0812/c3","labels_url":"https://api.github.com/repos/masayuki0812/c3/issues/1626/labels{/name}","comments_url":"https://api.github.com/repos/masayuki0812/c3/issues/1626/comments","events_url":"https://api.github.com/repos/masayuki0812/c3/issues/1626/events","html_url":"https://github.com/masayuki0812/c3/issues/1626","id":142040581,"number":1626,"title":"Y axis range not relative on area chart","user":{"login":"greenafrican","id":1160732,"avatar_url":"https://avatars.githubusercontent.com/u/1160732?v=3","gravatar_id":"","url":"https://api.github.com/users/greenafrican","html_url":"https://github.com/greenafrican","followers_url":"https://api.github.com/users/greenafrican/followers","following_url":"https://api.github.com/users/greenafrican/following{/other_user}","gists_url":"https://api.github.com/users/greenafrican/gists{/gist_id}","starred_url":"https://api.github.com/users/greenafrican/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/greenafrican/subscriptions","organizations_url":"https://api.github.com/users/greenafrican/orgs","repos_url":"https://api.github.com/users/greenafrican/repos","events_url":"https://api.github.com/users/greenafrican/events{/privacy}","received_events_url":"https://api.github.com/users/greenafrican/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-19T07:56:07Z","updated_at":"2016-04-30T01:05:06Z","closed_at":"2016-04-30T01:05:06Z","body":"I'd expect the area chart to behave similarly to the line chart; however, it doesn't shift the y axis to best fit the data.\r\n\r\n[Here is the line example](https://cloudup.com/cYJoZ7WvNzJ):\r\n```\r\n var chart = c3.generate({\r\n        data: {\r\n            columns: [\r\n                ['data1', 30000, 35000, 30000, 35000, 35000, 35000],\r\n                ['data2', 32000, 36000, 31000, 32000, 38000, 35000]\r\n            ],\r\n            types: {\r\n                data1: 'line',\r\n                data2: 'spline'\r\n            }\r\n        }\r\n```\r\n\r\n[And the area version](https://cloudup.com/cSjaiGo76TM):\r\n```\r\nvar chart = c3.generate({\r\n        data: {\r\n            columns: [\r\n                ['data1', 30000, 35000, 30000, 35000, 35000, 35000],\r\n                ['data2', 32000, 36000, 31000, 32000, 38000, 35000]\r\n            ],\r\n            types: {\r\n                data1: 'area',\r\n                data2: 'area-spline'\r\n            }\r\n        }\r\n    });\r\n```"}}