Closed
Description
Two ways of doing this come to mind:
- Add a few
Lib.log
incoerce.js
notifying users if a given attribute is set to an invalid value. Post Log levels #590, these logs would be hidden by default. This method has one drawback: it would only warn user about invalid values, not about invalid attributes (which never reachcoerce.js
. - Add a
Plotly.validate(data, layout)
method that runs the fullsupplyDefaults
chain, compare input and full data/layout and logs the info.