Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

设置smooth属性为true后线形图会出现重连之前的点的情况 #2612

Closed
iamwelk opened this issue Feb 19, 2016 · 0 comments
Closed
Labels

Comments

@iamwelk
Copy link

iamwelk commented Feb 19, 2016

option设置如下,当取消掉smooth为true的设置之后,则不会出现这种情况

option = {
   xAxis : [
                {
                    type : 'value',
                    axisTick: {
                        show: false
                    },
                    axisLabel: {
                        formatter: '{value}'
                    },
                    axisLine: {
                        show: false
                    },
                }
            ],
            yAxis : [
                {
                    type : 'value',
                    axisLine: {
                        show: false
                    },
                    splitArea: {
                        show: true
                    },
                    axisLabel : {
                        formatter: '{value}'
                    },
                    axisTick: {
                        show: false
                    }
                }
            ],
    series : [
        {
            name: '线索得分',
            type: 'line',
            data: [[0,0],[11,4],[12,2],[13,7],[14,7],[15,16],[16,17],[17,18],[18,288],[19,36],[20,1236],[21,136],[22,1382],[23,1386],[24,369],[25,466],[26,423],[27,377],[28,388],[29,388],[30,338],[31,345],[32,326],[33,361],[34,574],[35,220],[36,226],[37,463],[38,208],[39,209],[40,331],[41,320],[42,116],[43,102],[44,134],[45,136],[46,67],[47,58],[48,111],[49,67],[50,208],[51,49],[100,0]],
            smooth: true,
            symbolSize: 2,
            lineStyle: {
                normal: {
                    width: 1
                }
            },
            areaStyle: {
                normal: {
                    opacity: 0.6
                }
            }
        }
    ]
};

@pissang pissang added the bug label Feb 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants