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

条形图的markPoint显示不正确 #2641

Closed
langman opened this issue Feb 23, 2016 · 5 comments
Closed

条形图的markPoint显示不正确 #2641

langman opened this issue Feb 23, 2016 · 5 comments
Labels

Comments

@langman
Copy link

langman commented Feb 23, 2016

设置如下:
markPoint: { data: [{ type: 'max', name: '最大值' }, { type: 'min', name: '最小值' }] },

@langman langman changed the title 条形图最大值和最小值显示不正确 条形图的markPoint显示不正确 Feb 23, 2016
@zhump
Copy link

zhump commented Feb 23, 2016

可以提供一下详细的 demo配置吗

@langman
Copy link
Author

langman commented Feb 23, 2016

@zhump
var option={
    title: {
        text: '样例',
        x: 'center',
        y: 'top',
        textStyle: {
            fontSize: 12
        }
    },
    color: ['#47b4e1', '#65ce2c', '#f2dd2f', '#ffb64d', '#ff8b66'],
    tooltip: {
        trigger: 'axis',
        axisPointer: {
            type: 'shadow'
        }
    },
    toolbox: {
        show: true,
        feature: {
            dataView: {
                show: true,
                readOnly: true
            },
            restore: {
                show: true
            },
            saveAsImage: {
                show: true
            }
        }
    },
    legend: {
        data: ['样例一'],
        orient: 'horizontal',
        y: 'bottom'
    },
    xAxis: [{
        type: 'value'
    }],
    yAxis: [{
        type: 'category',
        data: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul']
    }],
    series: [{
        name: '样例一',
        type: 'bar',
        data: [120, 132, 101, 134, 90, 230, 210],
        itemStyle: {
            normal: {
                label: {
                    show: true,
                    position: 'insideRight'
                }
            }
        },
        markPoint: {
            data: [{
                type: 'max',
                name: '最大值'
            }, {
                type: 'min',
                name: '最小值'
            }]
        },
        markLine: {
            data: [{
                type: 'average',
                name: '平均值'
            }]
        }
    }]
}

@zhump
Copy link

zhump commented Feb 23, 2016

额。。确实有问题。。。tooltip 显示是正确的,,markPoint显示的不对,两个不一致。。 等待大神回复 @pissang

@pissang
Copy link
Contributor

pissang commented Feb 24, 2016

谢谢反馈,这个是 markPoint 显示成 y 轴的值了

@pissang pissang added the bug label Feb 24, 2016
@blueyy
Copy link

blueyy commented Dec 18, 2018

这个bug是还没有彻底解决吗?我在echarts的主题工具页面看到了类似的问题,虽然markPoint的位置正确,但我觉得是因为数据累加了
image

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

4 participants