Skip to content

markLine requires symbolOffset (BC break) #14696

@Bilge

Description

@Bilge

Version

5.1.0

Steps to reproduce

            series: [{
                step: 'end',
                data: AppCharts.dataset,
                markLine: {
                    data: [
                        {
                            yAxis: 123,
                            lineStyle: {
                                color: '#fff3',
                            },
                            label: {
                                formatter: 'min\n${c}',
                                fontSize: 12,
                                color: '#677a59',
                            },
                        },
                    ],
                },
            }],

N.B. This is valid in 5.0.2.

What is expected?

symbolOffset should be optional.

What is actually happening?

symbolOffset is required.

TS2322: Type '{ yAxis: number; lineStyle: { color: string; }; label: { formatter: string; fontSize: number; color: string; }; }' is not assignable to type 'MarkLine1DDataItemOption | MarkLine2DDataItemOption'.
Property 'symbolOffset' is missing in type '{ yAxis: number; lineStyle: { color: string; }; label: { formatter: string; fontSize: number; color: string; }; }' but required in type 'MarkLine1DDataItemOption'.

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