Skip to content

Echart5.0.1 markLine symbolOffset不生效 #14106

@eyunhua

Description

@eyunhua

Version

5.0.1

Steps to reproduce

series: [{
            type: 'line',
            smooth: 0.6,
            symbol: 'none',
            lineStyle: {
                color: '#5470C6',
                width: 5
            },
            markLine: {
                symbol: ['none', 'none'],
                label: {show: false},
                data: [
                    [
                        {
                            name: "start",
                            symbol:"path://M480.853553,588.853553 C481.048816,588.658291 481.048816,588.341709 480.853553,588.146447 C480.658291,587.951184 480.341709,587.951184 480.146447,588.146447 L474.146447,594.146447 C473.951184,594.341709 473.951184,594.658291 474.146447,594.853553 L480.146447,600.853553 C480.341709,601.048816 480.658291,601.048816 480.853553,600.853553 C481.048816,600.658291 481.048816,600.341709 480.853553,600.146447 L475.207107,594.5 L480.853553,588.853553 Z",
                            symbolOffset:[10,10],
                            xAxis: 1,
                            yAxis:"max",
                            symbolRotate: 360,
                            label:{"color":"#000","formatter":"{b}\n\n92.00%","distance":[0,-20],"position":"middle"},
                            lineStyle:{"color":"#97B8FF","type":"solid"}
                        },
                        {
                            name:"0-22天",
                            symbol:"path://M480.853553,588.853553 C481.048816,588.658291 481.048816,588.341709 480.853553,588.146447 C480.658291,587.951184 480.341709,587.951184 480.146447,588.146447 L474.146447,594.146447 C473.951184,594.341709 473.951184,594.658291 474.146447,594.853553 L480.146447,600.853553 C480.341709,601.048816 480.658291,601.048816 480.853553,600.853553 C481.048816,600.658291 481.048816,600.341709 480.853553,600.146447 L475.207107,594.5 L480.853553,588.853553 Z",
                            symbolRotate: 180,
                            symbolOffset:["10%","80%"],
                            xAxis: 3,
                            yAxis:"max"
                        }
                    ]
                ]
            },
            areaStyle: {},
            data: [
                ['2019-10-10', 200],
                ['2019-10-11', 560],
                ['2019-10-12', 750],
                ['2019-10-13', 580],
                ['2019-10-14', 250],
                ['2019-10-15', 300],
                ['2019-10-16', 450],
                ['2019-10-17', 300],
                ['2019-10-18', 100]
            ]
        }]

What is expected?

I expect symboloffset to set the SVG offset

What is actually happening?

no offset

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions