Restore options namespace for controller options (options[type].*
being too weak)
#8073
Labels
Milestone
options[type].*
being too weak)
#8073
I was looking at the new options structure in v3 and I realize that we now have
options[type].*
withtype
the controller type (if I'm not wrong). Buttype
could be anything such asflow
,control
,function
,tree
,interaction
,events
, etc.: we don't know because anyone can create a new chart type and use whatever name.And that's a big issue because that means we can't guarantee no breaking change every time we add or rename a root options (e.g. core options). For example, if someone creates an external chart using type
'foo'
and then we decide to introduce a newfoo
core option, then we break this external project for absolutely no good reason. It's also a shame to have to tell Chart.js users to not pick any name from our core options as a chart type.That's for the same reasons we decided to scope the
plugins
options.I would suggest to revert #6955
(and probably rename.options.datasets[type]
tooptions.controllers[type]
to be consistent withChart.defaults.controllers[type]
)The text was updated successfully, but these errors were encountered: