0
我有一個垂直線系列的圖表,see。如何從圖例中刪除此係列,以便只有我的「真實」系列顯示在圖例中?如何從dojo圖表中刪除一個系列的圖例
我有一個垂直線系列的圖表,see。如何從圖例中刪除此係列,以便只有我的「真實」系列顯示在圖例中?如何從dojo圖表中刪除一個系列的圖例
嘗試以下操作:
chart1.removeSeries("vertical line"); //Removes the series from the chart by series name
chart1.render(); //Refresh the chart
legend.refresh(); //Refresh the dojo legend object to update it
這就是我想出了一個解決方案。刪除系列,更新圖例,放回系列。但;它看起來相當不雅。 – Martlark 2013-03-12 02:39:17