For some reasone all graphs are cut off at the highest value. How can i fix this? I can't use a fixed y-axis
Edit/Update: As mentioned in the comments, the 5px value can more accurately be just half of whatever your line width value is, I belive default is 2px so in that case you would just want padding: { top: 1 }
There a layout.padding attribute you can set either in options or global. I had this same problem and set
options: { layout: { padding: { top: 5 } }, ... }
worked fine for me to not cut off the line http://www.chartjs.org/docs/#chart-configuration-layout-configuration
2.1m questions
2.1m answers
60 comments
57.0k users