TLovers commented on issue #1063:
URL: https://github.com/apache/echarts/issues/1063#issuecomment-1704919637
> 3Q, 根据提示打印实例, 获取到了相关lable属性,进行设置,完成了。
>
> ```coffee
> chart.setOption ctrl.options
> positionList = chart.chart.pie.series[0].data
> imageMap =
> "电视": 'image://image/analysis-tv.png'
> "平板": 'image://image/analysis-ipad.png'
> "手机": 'image://image/analysis-phone.png'
> "电脑": 'image://image/analysis-computer.png'
>
> setMarkPoint = (item)->
> name = item.name
> symbol = imageMap[name]
> x = item.__labelX - 16
> y = item.__labelY
>
> chart.addMarkPoint(0, {
> symbol: symbol
> symbolSize: 16
> data: [{name: name, x: x, y:y}]
> })
>
> for item in positionList
> setMarkPoint item
> ```
>
>

大佬 扇区的起始咋算的啊? 我想获取饼图上数据分割点的坐标,但是我打印了实例,结合了你的代码,看不懂你的代码,能解释下吗
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]