Skip to content

markLine不支持curveness吗?那么如何画曲线呢? #16496

@lonegale

Description

@lonegale

Version

5.3.0

Link to Minimal Reproduction

No response

Steps to Reproduce

series: [{ // 地图块的相关信息
                    name: '地域数量',
                    type: 'map',
                    // left: '20%',
                    top: '10%',
                    aspectScale: 1.1,
                    roam: false,
                    zoom: 1.1,
                    map: 'china',
                    label: {
                        show: false,
                        formatter:(params)=>{
                            const a = this.mapData.find(a=>a.name==params.name)
                            return a && params.name || ''
                        }
                    },
                    scaleLimit:{
                        min: .5,
                        max: 5
                    },
                    itemStyle:{
                        areaColor: '#045fb9',
                        borderWidth: 2,
                        borderColor: 'rgba(164,226,249,.3)',
                        opacity: .5
                    },
                    select:{
                        disabled: true
                    },
                    // geoIndex: 0, // 不可缺少,否则无tooltip 指示效果
                    data: datas,
                    markPoint:{
                        data: markTemp,
                        label:{
                            show: true,
                            formatter:(params)=>{
                                // const a = this.mapData.find(a=>a.name==params.name)
                                return params.name || ''
                            },
                            offset:[0,30]
                        },
                        itemStyle:{
                            opacity: .9
                        }
                    },
                    markLine:{
                        data: lineTemp,
                        symbol: 'none',
                        smooth: true,
                        lineStyle: {
                            curveness: .5,
                            smooth: true,
                        },
                        animationDelay:()=>{
                            return Math.random()*200
                        }
                    },
                }]

Current Behavior

添加markLine后,可以正常绘制线条,但是无论怎么设置都不能画出曲线,求教画曲线的方法。

Expected Behavior

希望markLine画出曲线

Environment

- OS:Windows 10
- Browser:Chrome 98.0
- Framework:Vue

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    pendingWe are not sure about whether this is a bug/new feature.staleInactive for a long time. Will be closed in 7 days.support

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions