Skip to content

MarkLine1DDataItemOption incorrectly defines xAxis as number #14300

@Bilge

Description

@Bilge

Since strings are a valid time series data items, it is incorrect for markLine to require the xAxis data point to be a number.

Version

5.0.2

Steps to reproduce

const options: ECOption = {
    series: [{
        markLine: {
            data: [{
                xAxis: "foo",
            }]
        }
    }],
};

What is expected?

interface MarkLine1DDataItemOption {
  xAxis?: number|string;
}

What is actually happening?

interface MarkLine1DDataItemOption {
  xAxis?: number;
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions