How do I prevent the scale labels from being cut off in chartjs?
问题 I am having a problem with chartjs where the scale labels are being "cut off" in the following way: [1] Is there a margin that can be set? I don't see anything in the chartjs documentation about this, and these seem to be contained within the chartjs canvas element (meaning: not covered by another div). 回答1: Add scale label option with whitespace before value . 2 or more whitespaces is allowed. scaleLabel: "<%= ' ' + value%>" 回答2: You can also set a padding in the layout configuration (in