chore: Update chart styling and loading text

This commit is contained in:
Andras Bacsai 2024-06-19 09:42:44 +02:00
parent d8984c42b5
commit 07e55b2636
2 changed files with 11 additions and 36 deletions

View File

@ -57,31 +57,10 @@
colors: [baseColor], colors: [baseColor],
xaxis: { xaxis: {
type: 'datetime', type: 'datetime',
labels: {
show: true,
style: {
colors: textColor,
}
}
},
yaxis: {
show: true,
labels: {
show: true,
style: {
colors: textColor,
}
}
}, },
series: [{ series: [{
data: '{!! $data !!}' data: '{!! $data !!}'
}], }],
noData: {
text: 'Loading...',
style: {
color: textColor,
}
},
tooltip: { tooltip: {
enabled: false, enabled: false,
}, },
@ -100,20 +79,25 @@
}], }],
colors: [baseColor], colors: [baseColor],
xaxis: { xaxis: {
type: 'datetime',
labels: { labels: {
show: true,
style: { style: {
colors: textColor, colors: textColor,
} }
} }
}, },
yaxis: { yaxis: {
show: true,
labels: { labels: {
show: true,
style: { style: {
colors: textColor, colors: textColor,
} }
} }
}, },
noData: { noData: {
text: 'Loading...',
style: { style: {
color: textColor, color: textColor,
} }

View File

@ -64,24 +64,9 @@
} }
} }
}, },
yaxis: {
show: true,
labels: {
show: true,
style: {
colors: textColor,
}
}
},
series: [{ series: [{
data: '{!! $data !!}' data: '{!! $data !!}'
}], }],
noData: {
text: 'Loading...',
style: {
color: textColor,
}
},
tooltip: { tooltip: {
enabled: false, enabled: false,
}, },
@ -100,20 +85,26 @@
}], }],
colors: [baseColor], colors: [baseColor],
xaxis: { xaxis: {
type: 'datetime',
labels: { labels: {
show: true,
style: { style: {
colors: textColor, colors: textColor,
} }
} }
}, },
yaxis: { yaxis: {
min: 0,
show: true,
labels: { labels: {
show: true,
style: { style: {
colors: textColor, colors: textColor,
} }
} }
}, },
noData: { noData: {
text: 'Loading...',
style: { style: {
color: textColor, color: textColor,
} }