Google Charts - Avoid showing negative values in yAxis

后端 未结 2 1926
情深已故
情深已故 2021-02-18 23:38

I have the following code:

function drawVisualization() {
  // Create and populate the data table.
  var data = google.visualization.arrayToDataTable([
    [\'Ye         


        
相关标签:
2条回答
  • 2021-02-19 00:24

    viewWindowMode: "explicit" is deprecated in current version which uses: vAxis.viewWindow.min:

    vAxis: {
        viewWindow: {
            min: 0
        }
    }
    
    0 讨论(0)
  • 2021-02-19 00:26

    You need to set viewWindowMode as explicit

    vAxis: {viewWindowMode: "explicit", viewWindow:{ min: 0 }}
    
    0 讨论(0)
提交回复
热议问题