Some max-width
This commit is contained in:
@@ -11,7 +11,6 @@ export default {
|
||||
async mounted() {
|
||||
let canvas = this.$refs["purchase-chart"].getContext("2d");
|
||||
|
||||
console.log(canvas);
|
||||
let _response = await fetch("/api/purchase/statistics");
|
||||
let response = await _response.json();
|
||||
let labels = [];
|
||||
|
||||
@@ -98,6 +98,8 @@ export default {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
width: 100vw;
|
||||
max-width: 1400px;
|
||||
margin: auto;
|
||||
justify-content: space-around;
|
||||
font-family: sans-serif;
|
||||
}
|
||||
|
||||
@@ -9,7 +9,6 @@ export default {
|
||||
async mounted() {
|
||||
let canvas = this.$refs["win-chart"].getContext("2d");
|
||||
|
||||
console.log(canvas);
|
||||
let _response = await fetch("/api/purchase/statistics/color");
|
||||
let response = await _response.json();
|
||||
let labels = ["Vunnet"];
|
||||
@@ -61,7 +60,6 @@ export default {
|
||||
labels: labels,
|
||||
datasets: datasets
|
||||
};
|
||||
console.log(datasets);
|
||||
let chart = new Chart(canvas, {
|
||||
type: "bar",
|
||||
data: chartdata,
|
||||
|
||||
Reference in New Issue
Block a user