myChart.on('mouseup',function(params){
var option=myChart.getOption();
option.series[0].nodes[params.dataIndex].x=params.event.offsetX;
option.series[0].nodes[params.dataIndex].y=params.event.offsetY;
option.series[0].nodes[params.dataIndex].fixed=true;
myChart.setOption(option);
});

 

我用的是echarts4,不是2,所以标红的地方是nodes不是data,对号入座啊

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-02-17
  • 2022-12-23
  • 2022-12-23
  • 2021-10-17
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-04-14
  • 2022-12-23
  • 2022-12-23
  • 2021-06-22
  • 2022-12-23
  • 2021-12-23
相关资源
相似解决方案