Skip to content

Expose info about attribute coercion and/or way to validate user data/layout #598

Closed
@etpinard

Description

@etpinard

Two ways of doing this come to mind:

  1. Add a few Lib.log in coerce.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 reach coerce.js.
  2. Add a Plotly.validate(data, layout) method that runs the full supplyDefaults chain, compare input and full data/layout and logs the info.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions