echarts icon indicating copy to clipboard operation
echarts copied to clipboard

MarkPoint里面设置coord之后,就没有label内容显示了。设置type: min/max, 可以显示数据

Open everglow1 opened this issue 8 years ago • 5 comments

One-line summary [问题简述]

在series中设置标注MarkPoint, 使用coord确定标注的坐标,标注里面没有文本。

Version & Environment [版本及环境]

  • ECharts version [ECharts 版本]:4.2
  • Browser version [浏览器类型和版本]:谷歌
  • OS Version [操作系统类型和版本]:windows 7

Expected behaviour [期望结果]

这好像是个bug啊。我用几个例子都测了。series中MarkPoint设置coord之后就没有文本内容了

ECharts option [ECharts配置项]

option = {

}

Other comments [其他信息]

everglow1 avatar Jul 23 '18 07:07 everglow1

最近試著從ECharts 版本 3.6.2 升到 4.0、4.1.0rc2 也有發生此問題 建立一個bar圖 axis.type 設為 'category' x軸資料設定為日期字串如 '2018/07/23' , '2018/07/24' , '2018/07/25'

 markPoint: { 
            data: [{"coord":["2018/07/23",84.61]},
                      {"coord":["2018/07/24",84.61]},
                      {"coord":"2018/07/25",38.98]}],
            label: {
                position: 'top',
                fontSize: 14,
                color: '#000'
            },
        }

結果無法顯示markPoint label內容

rong4620 avatar Jul 25 '18 03:07 rong4620

data: [
            {coord: [0, 22], value: 22},
            {coord: [1, 33], value: 33},
            {coord: [2, 44], value: 44},
            {coord: [3, 44], value: 44},
        ],

前面位置,后面值。

2014guai avatar Oct 11 '18 09:10 2014guai

@2014guai 是这样的,解决了,点个赞

tomastong avatar Dec 13 '18 05:12 tomastong

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.

stale[bot] avatar Dec 19 '20 08:12 stale[bot]

This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. Thanks!

github-actions[bot] avatar Sep 03 '21 21:09 github-actions[bot]