-
Notifications
You must be signed in to change notification settings - Fork 12k
Description
I'm trying to create a line chart using Chart.js v2.0.2 where no dataset has data points displayed but one. So I set these options in the global chart settings:
elements: {point: {radius: 0, hoverRadius: 0, hitRadius: 0,},},
Then for the dataset I want to have the points displayed I have to use:
{
label: "My Third dataset",
data: [randomScalingFactor(), randomScalingFactor(),],
yAxisID: "y-axis-3",
fill: false,
radius: 5,
pointHoverRadius: 5,
hitRadius: 8,
}
This works but what one can see here is that the options "radius" and "hitRadius" do not have the "point"-prefix, but "hoverRadius" does. As a question: do "radius" and "hitRadius" affect other elements despite points?
In the example in the docs (https://nnnick.github.io/Chart.js/docs-v2/#example-usage), most of the options are prefixed with "point".
The option "tension" which can be set per-database as well is not prefixed with "line".
What is your opinion about this inconsistency? Use prefix for all options or for none? I can work on the code and create a PR if there is a consensus.