chartjs / chartjs/Chart.js

Point Configuration: Radius

Open
#11,642 0 comments 1 reaction 0 assignees View on GitHub
type: documentation
Dominant language
JavaScript
Stars
67.7k
Forks
11.9k
Avg merge
7h 39m
Merged PRs (30d)
5

Description

### 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](https://github.com/chartjs/Chart.js/assets/1749234/2980cf8f-4080-43fa-a1a5-74fa66f089a1)

### Your Proposal for Changes

Make documentation clearer

### Example

_No response_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.