Chart.js 2.0.0-beta2 disable points in the line Charts

Is it possible to disable the display of points on diagrams of type 2.0.0-beta2?

How?

I have a weekly timeline chart where the data is hourly. Everything works well, but there are too many points. I would prefer a graph with just lines and no dots. I was looking for documentation, but I did not see any options.

+4
source share
1 answer

Maybe a little late, but still. I had the same problem and you were looking for the source code for this (because it used to be: pointDot: false, which no longer works)

There are two ways to do it now:

  • Use parameters (this is in the nnick.github Chartjs and Search point.radius documentation)

    options: {           : {point: {radius: 1, hitRadius: 1, hoverRadius: 4}}       }

  •     data: {                
            datasets: [{
                radius: 0,
    

: : 0

+8

Source: https://habr.com/ru/post/1625493/


All Articles