我正在使用系列的工具提示在同一個工具提示中顯示圖表的所有系列值。series1.tooltipText= '[bold]{dateX}[/]\\nSeries1Label: {series1}\\nSeries2Label: {series2}\\nSeries3Label: {series3}';series2.tooltip.disabled = true;series3.tooltip.disabled = true;但是我需要一種方法來禁用具有工具提示的系列的切換,因為禁用該系列也會使工具提示消失。如 amCharts 文檔中所示,您可以禁用 Legend 中的項目切換,但這是一個適用于整個圖表的選項:chart.legend.itemContainers.template.clickable = false;如果我只需要為一個系列禁用它,同時為另一個系列啟用切換怎么辦?有辦法嗎?
amCharts:禁用圖例中某些項目的切換
寶慕林4294392
2021-06-28 04:20:56