Chart.js icon indicating copy to clipboard operation
Chart.js copied to clipboard

Point Configuration: Radius

Open escael opened this issue 1 year ago • 0 comments

Documentation Is:

  • [ ] Missing or needed?
  • [X] Confusing
  • [ ] Not sure?

Please Explain in Detail...

https://www.chartjs.org/docs/latest/configuration/elements.html#point-configuration

In the Radius section of the Points configuration, it specifies that the radius is of type Number, but it actually also accepts an array of numbers.

I have spent a day and a half looking for an alternative solution to paint different radius values. If I had known that something like this was possible:

radius: [0, 0, 0, 0, 0, 6, 6, 6, 6, 0, 0, 0]

And not just like this:

radius: 6

Thanks Captura de pantalla 2024-01-18 a las 15 42 47

Your Proposal for Changes

Make documentation clearer

Example

No response

escael avatar Jan 18 '24 14:01 escael