首页 > 解决方案 > 谷歌图表水平线显示在栏的前面,当我悬停图例时显示小线。请帮我

问题描述

谷歌图表水平线显示在栏的前面,当我悬停图例时显示小线。请帮我。请参阅下面的代码和附加的屏幕截图。 protected getChartOptions() { return { annotations: { style: 'line', stem: { color: 'transparent', length: 0 }, textStyle: { fontSize: 11, color:'#838383', auraColor: 'transparent' }, }, tooltip: { textStyle: { fontSize: 12, bold: true, } }, height: 280, fontName : "Lato", colors: ["#F40C48", "#16B587", "#EAB417", "#F47A0C", "#838383"], legend: { position: "top", maxLines: 3, textStyle: { color: "#0b5b90", fontSize: 10 } }, bar: { groupWidth: "20%" }, hAxis: { textPosition: 'none', }, vAxis: { textStyle: { fontSize:8, bold: true, }, gridlines: { count: 3, color: "#E8E8E8" }, }, series: { 0: { targetAxisIndex: 0 }, 1: { targetAxisIndex: 1 } }, vAxes: { 0: { textPosition: 'none',baselineColor: '#E8E8E8'}, 1: { baselineColor: '#929292'} }, isStacked: "percent", chartArea: { width: "80%"} } } 谷歌图表图片在这里

标签: angulargoogle-visualizationng2-google-chart

解决方案


推荐阅读