We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67f94d9 commit 8c753a3Copy full SHA for 8c753a3
src/shared/utils.js
@@ -0,0 +1,3 @@
1
+export function random (min, max) {
2
+ return Math.floor(Math.random() * (max - min + 1) + min)
3
+}
src/views/dashboard/MainChartExample.vue
@@ -2,10 +2,7 @@
import { Line } from 'vue-chartjs'
import { getStyle, hexToRgba } from '@coreui/coreui/dist/js/coreui-utilities'
4
import { CustomTooltips } from '@coreui/coreui-plugin-chartjs-custom-tooltips'
5
-
6
-function random (min, max) {
7
- return Math.floor(Math.random() * (max - min + 1) + min)
8
-}
+import { random } from '@/shared/utils'
9
10
export default {
11
extends: Line,
0 commit comments