google charts bar shadows

微笑、不失礼 提交于 2019-12-25 16:25:53

问题


is there a way to get rid of the shadows in when I hover the bars in a chart? I am able to do so on the tooltip, but have not found a way to do so on the bar itself. in this instance the blue or red bar itself...

I imagine if possible, this needs to be done in css? function drawBasic() {

var data = google.visualization.arrayToDataTable([
    ['City', '2010 Population','j'],
    ['New York City, NY', 80,10],
    ['Los Angeles, CA', 80,0],
    ['Chicago, IL', 70,0],
    ['Houston, TX', 65,0],
    ['Philadelphia, PA', 17,0]
  ]);
    var num = 0;


  var options = {
    title: 'Percent of students enrolled',
    chartArea: {width: '50%'},
    hAxis: {
      title: 'Percentage',
      minValue: 100
    },
    vAxis: {
      title: 'college location'
    },
      isStacked: true
  };

https://jsfiddle.net/skinnyb/33og516L/3/


回答1:


This css-rule seems to work:

rect[stroke-opacity]{
   stroke-width:0 !important;
}

https://jsfiddle.net/kghv82yc/



来源:https://stackoverflow.com/questions/32132926/google-charts-bar-shadows

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!