xuqiang il y a 4 ans
Parent
commit
d79db63187

+ 12 - 1
src/main/vue/src/widgets/RecentDemand.vue

@@ -67,7 +67,18 @@ export default {
                                 ],
                                 borderWidth: 1
                             }
-                        ]
+                        ],
+                        options: {
+                            scales: {
+                                yAxes: [
+                                    {
+                                        ticks: {
+                                            min: 0
+                                        }
+                                    }
+                                ]
+                            }
+                        }
                     };
                 })
                 .catch(e => {

+ 12 - 1
src/main/vue/src/widgets/RecentSupply.vue

@@ -67,7 +67,18 @@ export default {
                                 ],
                                 borderWidth: 1
                             }
-                        ]
+                        ],
+                        options: {
+                            scales: {
+                                yAxes: [
+                                    {
+                                        ticks: {
+                                            min: 0
+                                        }
+                                    }
+                                ]
+                            }
+                        }
                     };
                 })
                 .catch(e => {