<img width="373" height="402" alt="Image" src="https://github.com/user-attachments/assets/cf4e45c0-c6a4-4250-940d-5466454da105" /> Plotly.newPlot('chart-container', [],{ dragmode: false, // 禁止拖动图表 xaxis: { fixedrange: true // 禁止对 X 轴进行拖动缩放 }, yaxis: { fixedrange: true // 禁止对 Y 轴进行拖动缩放 } }, { scrollZoom: false, // 禁止鼠标滚轮缩放 doubleClick: false, // 禁止双击缩放 displayModeBar: false, // 隐藏整个工具栏 // staticPlot: true // ✅ 完全禁用所有交互(包括拖动、缩放、点击) })