how to disable the x axis and y axis line in google api line chart

陌路散爱 提交于 2019-12-03 14:38:53

you cant remove or disable your x and y axis in google api the alter way is to set the baselineColor and gridlineColor same as the background color and set the textPosition to none.

vAxis:{
         baselineColor: '#fff',
         gridlineColor: '#fff',
         textPosition: 'none'
       }
dkz

With the current version of Google Charts, the following removes axis lines:

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