[Chartjs]-Chart JS display Data Value on the top of the Bar

9👍

For the problem of yours the data labels getting cropped on the top, you can add padding to the through the layout option like this:

layout: {
      padding: {
        left: 0,
        right: 0,
        top: 15,
        bottom: 0
      }
    }

See fiddle -> https://jsfiddle.net/xys1tqfn/1/

Leave a comment