score:22

Accepted answer

to show only the dots, you need to set the showline property to false for your dataset.

here is an example :

var chart = new chart(ctx, {
   type: 'line',
   data: {
      labels: ['jan', 'feb', 'mar', 'apr', 'may'],
      datasets: [{
         label: '# of votes',
         data: [3, 4, 1, 5, 6],
         pointbackgroundcolor: 'black',
         pointradius: 5,
         fill: false,
         showline: false //<- set this
      }]
   }
});
<script src="https://cdnjs.cloudflare.com/ajax/libs/chart.js/2.6.0/chart.min.js"></script>
<canvas id="ctx"></canvas>


Related Query

More Query from same tag