Chartjs-Chart.js place y value position and its x-label position relative to the x-value

1๐Ÿ‘

โœ…

A line or scatter chart will do the job. The main criteria is that the data is a series of x and y coordinates. Each point in the array is in the form:

{
  x: xValue,
  y: yValue
}

See http://www.chartjs.org/samples/latest/charts/scatter/basic.html

here is a jsfiddle that reproduces your image.

Leave a comment