瀏覽代碼

Graph commence

Arthur Brandao 5 年之前
父節點
當前提交
db7698a041
共有 1 個文件被更改,包括 7 次插入0 次删除
  1. 7 0
      WebContent/js/generate-chart.js

+ 7 - 0
WebContent/js/generate-chart.js

@@ -39,6 +39,13 @@ function generateBarChart(elt, title, colname, data) {
             title: {
                 display: true,
                 text: title
+            },
+            scales: {
+            	yAxes: [{
+            		ticks: {
+            			beginAtZero: true
+            		}
+            	}]
             }
         }
     });