[Chartjs]-How to draw lines between minimum and maximum value to average value in chartJS?

0👍

You can add one more line graph inside your scatter graph the same as you have drawn the existing line.

Data for that graph will the co-ordinates of bubble {x: bubble co-ordinate} and point on the line {y: point on the line}

     {
         data: [{
             x: value1,
             y: minimum-value // according to your requirement
         }, {
             x: value1,
             y: average-value
         }
     ],
         borderColor: 'black',
         borderDash : [5,5]
         borderWidth: 1,
         fill: false,
         showLine: true,
         pointRadius : 0,
         datalabels: {
            display: false
        }

     }

Leave a comment