Chartjs-How to draw x axis and y-axis origin line draw in ng2-google-charts?

0👍

Try this

hAxis: {
  baselineColor: 'black',
  ticks: []
},
vAxis: {
  baselineColor: 'black',
  ticks: []
}

The baseline for the hAxis is a vertical line and the baseline for the vAxis is a horizontal line. So if you want to remove the horizontal black line you need to set the vAxis baselineColor and vice-versa.

Leave a comment