mirror of
https://github.com/yawaflua/LuckyDiamond.git
synced 2025-12-10 04:09:29 +02:00
fixed graph crash
This commit is contained in:
@@ -38,8 +38,8 @@ export default {
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
dataValues: [0,],
|
dataValues: [],
|
||||||
labels: [""],
|
labels: [" "],
|
||||||
data: null,
|
data: null,
|
||||||
options: {
|
options: {
|
||||||
plugins: {
|
plugins: {
|
||||||
@@ -48,9 +48,6 @@ export default {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
scales: {
|
scales: {
|
||||||
y: {
|
|
||||||
beginAtZero: true, // Устанавливаем начало оси Y с нуля
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
animation: false, // Отключаем анимацию
|
animation: false, // Отключаем анимацию
|
||||||
},
|
},
|
||||||
@@ -88,7 +85,7 @@ export default {
|
|||||||
if (this.crashdata.Status === 'WaitingForPlayers') {
|
if (this.crashdata.Status === 'WaitingForPlayers') {
|
||||||
this.data = this.chartData;
|
this.data = this.chartData;
|
||||||
this.labels = [""];
|
this.labels = [""];
|
||||||
this.dataValues = [0, 0];
|
this.dataValues = [1, 1];
|
||||||
}
|
}
|
||||||
else if (this.crashdata.Status === 'InGame') {
|
else if (this.crashdata.Status === 'InGame') {
|
||||||
nextDataValue = this.crashdata.CurrentX
|
nextDataValue = this.crashdata.CurrentX
|
||||||
|
|||||||
Reference in New Issue
Block a user