Skip to content

HorizontalBarSeries y can't be string #1431

@NEsanya

Description

@NEsanya

In the documentation, the y field says: "Type: (Horizontal Bar Series): string | number". But in practice, the y field can only be a number.
Example:

<XYPlot width={300} height={300}>
  <HorizontalBarSeries
    data={[
      { y: "APPLE", x: 7 },
      { y: "BANANA", x: 10 }
    ]}
  />
</XYPlot>

That code throws many errors on the console. But if we put an int in the y field, then everything will work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions