apache / echarts

Apache ECharts is a powerful, interactive charting and data visualization library for browser
https://echarts.apache.org
Apache License 2.0
60.2k stars 19.61k forks source link

在条形图上,markPoints不会呈现。 #7974

Closed ChandradipJ closed 4 years ago

ChandradipJ commented 6 years ago

在条形图上,markPoints不会呈现。

One-line summary [问题简述]

在条形图上,markPoints数据设置为坐标时,不会呈现markPoints。

Version & Environment [版本及环境]

Current behavior [当前行为]

image

Expected behaviour [期望结果]

标记点应该在指定的坐标上呈现。

ECharts option [ECharts配置项]

option = {
    xAxis: {
        data: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']
    },
    yAxis: {},
    series: [{
        type: 'bar',
        data:[220, 182, 191, 234, 290, 330, 310],
        markPoint: {
            data: [
                {
                    name: "p1",
                    coord: ["Tue", 300],
                },
                {
                    name: "p2",
                    coord: ["Thu",200],
                },
            ],
            label: {
                show: true
            },
        },
    }]
};

Other comments [其他信息]

100pah commented 6 years ago

您的问题是什么。

ChandradipJ commented 6 years ago

(所有文字都是谷歌翻译) 我已经更新了这个问题,希望现在您能理解这个问题。 仍然是我的问题是,通过上面提供的“选项”设置,标记点不会显示在之前的echart版本中显示的设置相同。

chenmf6 commented 6 years ago

我也有同样的问题,柱状图里面没法显示markPoint。使用的是react-native-secharts的第三方库,使用的是4.x的Echarts版本

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

algaeReed commented 4 months ago

我也有同样的问题,柱状图里面没法显示markPoint。使用的是react-native-secharts的第三方库,使用的是4.x的Echarts版本

https://github.com/apache/echarts/issues/18468#issuecomment-1494102276