From e3821112e41c2a984607ac27526e484de514bd53 Mon Sep 17 00:00:00 2001 From: woothu <32914662+woothu@users.noreply.github.com> Date: Fri, 20 Sep 2019 18:08:16 +0200 Subject: [PATCH] fix: small fixes --- src/views/Dashboard.vue | 6 +- src/views/charts/MainChartExample.vue | 90 +-------------------------- 2 files changed, 4 insertions(+), 92 deletions(-) diff --git a/src/views/Dashboard.vue b/src/views/Dashboard.vue index 528aa3f7..35eced5e 100644 --- a/src/views/Dashboard.vue +++ b/src/views/Dashboard.vue @@ -385,10 +385,10 @@ no-sorting > -
- +
+
diff --git a/src/views/charts/MainChartExample.vue b/src/views/charts/MainChartExample.vue index 245176d8..6ca983ff 100644 --- a/src/views/charts/MainChartExample.vue +++ b/src/views/charts/MainChartExample.vue @@ -97,94 +97,6 @@ export default { } } } - }, - // mounted () { - // const brandSuccess = getStyle('--success') || '#4dbd74' - // const brandInfo = getStyle('--info') || '#20a8d8' - // const brandDanger = getStyle('--danger') || '#f86c6b' - // - // let elements = 27 - // const data1 = [] - // const data2 = [] - // const data3 = [] - // - // for (let i = 0; i <= elements; i++) { - // data1.push(random(50, 200)) - // data2.push(random(80, 100)) - // data3.push(65) - // } - // this.renderChart({ - // datasets: [ - // { - // label: 'My First dataset', - // backgroundColor: hexToRgba(brandInfo, 10), - // borderColor: brandInfo, - // pointHoverBackgroundColor: '#fff', - // borderWidth: 2, - // data: data1 - // }, - // { - // label: 'My Second dataset', - // backgroundColor: 'transparent', - // borderColor: brandSuccess, - // pointHoverBackgroundColor: '#fff', - // borderWidth: 2, - // data: data2 - // }, - // { - // label: 'My Third dataset', - // backgroundColor: 'transparent', - // borderColor: brandDanger, - // pointHoverBackgroundColor: '#fff', - // borderWidth: 1, - // borderDash: [8, 5], - // data: data3 - // } - // ] - // }, { - // tooltips: { - // enabled: false, - // custom: CustomTooltips, - // intersect: true, - // mode: 'index', - // position: 'nearest', - // callbacks: { - // labelColor: function (tooltipItem, chart) { - // return { backgroundColor: chart.data.datasets[tooltipItem.datasetIndex].borderColor } - // } - // } - // }, - // maintainAspectRatio: false, - // legend: { - // display: false - // }, - // scales: { - // xAxes: [{ - // gridLines: { - // drawOnChartArea: false - // } - // }], - // yAxes: [{ - // ticks: { - // beginAtZero: true, - // maxTicksLimit: 5, - // stepSize: Math.ceil(250 / 5), - // max: 250 - // }, - // gridLines: { - // display: true - // } - // }] - // }, - // elements: { - // point: { - // radius: 0, - // hitRadius: 10, - // hoverRadius: 4, - // hoverBorderWidth: 3 - // } - // } - // }) - // } + } }