gun-ctrl opened a new issue, #20762:
URL: https://github.com/apache/echarts/issues/20762
### Version
5.6.0
### Link to Minimal Reproduction
***
### Steps to Reproduce
mounted() {
var symbolSize = 15;
const chartDom = document.getElementById('sleepChart')
const myChart = echarts.init(chartDom)
let tempData = [
[0, 20],
[1, 20.5],
[2, 21],
[3, 23.5],
[4, 25],
[5, 23],
[6, 22],
[7, 21.5],
[8, 20]
]
let vm = this
myChart.setOption({
xAxis: {
type: 'category',
boundaryGap: true,
data: this.xAxisData,
axisTick: {
show: true,
alignWithLabel: true,
inside: true,
},
axisLabel: {
color: '#999999'
}
},
yAxis: this.yAxisData,
series: [{
id: 'sleep',
type: 'line',
smooth: true,
areaStyle: {},
symbolSize: symbolSize,
data: tempData,
}],
})
myChart.setOption({
graphic: echarts.util.map(tempData, (dataItem, dataIndex) => {
return {
type: 'circle',
shape: {
r: symbolSize / 2,
},
style: {
fill: '#2B7BED',
},
position: myChart.convertToPixel('grid', dataItem),
invisible: false,
draggable: 'vertical',
z: 100,
ondrag: echarts.util.curry(vm.onPointDragging,
dataIndex)
}
})
})
window.addEventListener('resize', function () {
myChart.setOption({
graphic: echarts.util.map(data, function (item, dataIndex) {
return { position: myChart.convertToPixel('grid', item)
};
})
});
});
function pointDragging(dataIndex) {
console.log('drag----------------')
}
},
The above is my code,the chart was generated normally
### Current Behavior
Dragging nodes, function not called
### Expected Behavior
Dragging nodes, function not called
### Environment
```markdown
- OS:
- Browser:
- Framework:
```
### Any additional comments?
_No response_
--
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]