C3.js | D3-based reusable chart library
Menu
Getting Started
Examples
Reference
Forum
Source
Range for Y Axis
# axes_y_range.js
var chart = c3.generate({ data: { columns: [ ['sample', 30, 200, 100, 400, 150, 250] ] }, axis: { y: { max: 400, min: -400, // Range includes padding, set 0 if no padding needed // padding: {top:0, bottom:0} } } });