@@ -97,94 +97,6 @@ export default {
9797 }
9898 }
9999 }
100- },
101- // mounted () {
102- // const brandSuccess = getStyle('--success') || '#4dbd74'
103- // const brandInfo = getStyle('--info') || '#20a8d8'
104- // const brandDanger = getStyle('--danger') || '#f86c6b'
105- //
106- // let elements = 27
107- // const data1 = []
108- // const data2 = []
109- // const data3 = []
110- //
111- // for (let i = 0; i <= elements; i++) {
112- // data1.push(random(50, 200))
113- // data2.push(random(80, 100))
114- // data3.push(65)
115- // }
116- // this.renderChart({
117- // datasets: [
118- // {
119- // label: 'My First dataset',
120- // backgroundColor: hexToRgba(brandInfo, 10),
121- // borderColor: brandInfo,
122- // pointHoverBackgroundColor: '#fff',
123- // borderWidth: 2,
124- // data: data1
125- // },
126- // {
127- // label: 'My Second dataset',
128- // backgroundColor: 'transparent',
129- // borderColor: brandSuccess,
130- // pointHoverBackgroundColor: '#fff',
131- // borderWidth: 2,
132- // data: data2
133- // },
134- // {
135- // label: 'My Third dataset',
136- // backgroundColor: 'transparent',
137- // borderColor: brandDanger,
138- // pointHoverBackgroundColor: '#fff',
139- // borderWidth: 1,
140- // borderDash: [8, 5],
141- // data: data3
142- // }
143- // ]
144- // }, {
145- // tooltips: {
146- // enabled: false,
147- // custom: CustomTooltips,
148- // intersect: true,
149- // mode: 'index',
150- // position: 'nearest',
151- // callbacks: {
152- // labelColor: function (tooltipItem, chart) {
153- // return { backgroundColor: chart.data.datasets[tooltipItem.datasetIndex].borderColor }
154- // }
155- // }
156- // },
157- // maintainAspectRatio: false,
158- // legend: {
159- // display: false
160- // },
161- // scales: {
162- // xAxes: [{
163- // gridLines: {
164- // drawOnChartArea: false
165- // }
166- // }],
167- // yAxes: [{
168- // ticks: {
169- // beginAtZero: true,
170- // maxTicksLimit: 5,
171- // stepSize: Math.ceil(250 / 5),
172- // max: 250
173- // },
174- // gridLines: {
175- // display: true
176- // }
177- // }]
178- // },
179- // elements: {
180- // point: {
181- // radius: 0,
182- // hitRadius: 10,
183- // hoverRadius: 4,
184- // hoverBorderWidth: 3
185- // }
186- // }
187- // })
188- // }
100+ }
189101}
190102 </script >
0 commit comments