Skip to content

symbolOffset not working in markLine data #9325

@ryanpei94

Description

@ryanpei94

One-line summary [问题简述]

Trying to change symbol by using 'image://' and change symbolOffset but it's not working in markLine data

Version & Environment [版本及环境]

  • ECharts version [ECharts 版本]: 4.2.0-rc.2
  • Browser version [浏览器类型和版本]: Google Chrome 70.0.3538.77
  • OS Version [操作系统类型和版本]:

Expected behaviour [期望结果]

  • Able to customise the symbol image position

ECharts option [ECharts配置项]

 markLine: {
               lineStyle: {
                        width: 1,
                        color: '#626c91',
                        type: 'solid'
                    },
                    data: [
                        [
     
                            {
                                xAxis: 50,
                                yAxis: 0,
                                symbol: 'none',
                            },
                   
                            {
                                xAxis: 50,
                                yAxis: 1800,
                                symbol: 'image://../../../assets/images/greyboxTest.png',
                                symbolSize: [160, 60],
                                symbolOffset: [0, '50%']
                            }
                        ]
                    ]
                }

Other comments [其他信息]

screen shot 2018-11-01 at 7 37 48 pm

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