'google chart slantedText and min Value is not working

I am using google chart. I want to slate text on x-axis and should be minimum value is 0 in y-axis. After some google i put some snippet not it working.

Here is my code:-

var data = google.visualization.arrayToDataTable(loadDaysLeadGraphData);
 var options = {
   hAxis: {
     title: "Month",
     textPosition: 'out',
     slantedText: true,
      slantedTextAngle: 90
  },
  vAxis: {
    title: 'Revenue',
    minValue: 0,
    viewWindow: { min: 0 },
    format: '0',
  },
  height: 260,
  colors: ['#e0440e', '#e6693e', '#ec8f6e', '#f3b49f', '#f6c7b6']
};
var chart = new google.charts.Bar(document.getElementById('days-leads'));

chart.draw(data, options);

enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source