1

How do I stop the chart from cutting off the axis label words? This question is similar: "How do I prevent the scale labels from being cut off in chartjs?" But only addresses the labels on the tick marks.

The axis label should say "mental health continuum". But the m is cut off.

Chart cut off

1 Answer 1

3

You can fix that by setting the layout padding on the chart.

options: { layout: { padding: { top: 20 } } } 

Here is the reference http://www.chartjs.org/docs/latest/configuration/layout.html

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.