Skip to content

Allow for using field/channel definition properties with datum #9675

@joelostblom

Description

@joelostblom

Bug Description

According to the docs, it should be possible to use datum together with field definition properties such as scale, axis, etc. When I create such a spec, the chart is rendered as expected, but datum is underlined with the warning "Property datum is not allowed":

Image

This error/warning means that we can't create the chart from altair, since the schema validation fails. Since the docs imply that the intention is that this should be supported and the chart is working as expected, would it be possible to update the schema validation to not throw an error/warning in this case?

(I seem to recall using datum with scale in the past without issues, so maybe this is a regression? Or maybe I'm using it incorrectly and there is another way to combine datum with scale?)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions