vue獲取dom元素的方法 如何echarts的legend中,鼠標(biāo)移過(guò)去后會(huì)出現(xiàn)數(shù)據(jù)展示的明細(xì)提示?
如何echarts的legend中,鼠標(biāo)移過(guò)去后會(huì)出現(xiàn)數(shù)據(jù)展示的明細(xì)提示?默認(rèn)情況下,ecarts圖例的選定屬性為true,因此所有數(shù)據(jù)都將顯示在圖表中。當(dāng)ecarts的legend屬性將名稱(chēng)設(shè)置為f
如何echarts的legend中,鼠標(biāo)移過(guò)去后會(huì)出現(xiàn)數(shù)據(jù)展示的明細(xì)提示?
默認(rèn)情況下,ecarts圖例的選定屬性為true,因此所有數(shù)據(jù)都將顯示在圖表中。當(dāng)ecarts的legend屬性將名稱(chēng)設(shè)置為false時(shí),默認(rèn)情況下不會(huì)顯示該名稱(chēng)。您需要手動(dòng)單擊圖例來(lái)顯示它。此屬性的設(shè)置需要以下方式:VAR val1=“l(fā)anguage”VAR val2=“mathematics”VAR val3=“English”option.legend.selected選項(xiàng)[值1]=falseoption.legend.selected選項(xiàng)[值2]=falseoption.legend.selected選項(xiàng)[值3]=falsemyChart.setOption選項(xiàng)(可選)