You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@1t1824d It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗
TRANSLATED
TITLE
[Bug] series-custom.renderItem.return_polyline.info any user-defined arbitrary data, can be accessed in the event listener, there is a bug
echarts-botbot
changed the title
[Bug] series-custom.renderItem.return_polyline. info any 用户定义的任意数据,可以在 event listener 中访问,存在bug
[Bug] series-custom.renderItem.return_polyline. info any 用户定义的任意数据,可以在 event listener 中访问,存在bug
Jul 12, 2023
Version
5.4.2
Link to Minimal Reproduction
https://echarts.apache.org/zh/option.html#series-custom.renderItem.return_polyline.info
Steps to Reproduce
let ItemData = {
type: 'custom',
name: ele.Name,
info: ele.ChartData,
z: ele.ZLevel,
yAxisIndex: ele.YAxisIndex,
silent: false,
invisible: false,
renderItem: (params, api) => {
if (params.context.rendered) {
return;
}
params.context.rendered = true;
let points = [];
for (let i = 0; i < ChartData.length; i++) {
points.push(api.coord(ChartData[i]));
}
return {
type: 'group',
position: [0, 0],
children: [
{
type: "polyline",
shape: {
points: points,
smooth: 1,
Current Behavior
info属性无法添加
Expected Behavior
希望自定义系列图形的info属性可以正常使用
Environment
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: