Собрать данные для месяцев, кварталов и годов
This commit is contained in:
1 parent
c5aaad5dca
commit
6144fa7df2
5 files changed
+76
-14
No files matched your search
Generated
+32
-4
@@ -8,16 +8,20 @@
|
||||
"name": "front",
|
||||
"version": "0.0.49",
|
||||
"dependencies": {
|
||||
"-": "^0.0.1",
|
||||
"@mdi/font": "7.0.96",
|
||||
"@vuelidate/core": "^2.0.3",
|
||||
"@vuelidate/validators": "^2.0.3",
|
||||
"adapter": "^1.0.0-beta.10",
|
||||
"axios": "^1.4.0",
|
||||
"chart.js": "^4.4.1",
|
||||
"chartjs": "^0.3.24",
|
||||
"chartjs-adapter-moment": "^1.0.1",
|
||||
"chartjs-plugin-datalabels": "^2.2.0",
|
||||
"date-fns": "^2.30.0",
|
||||
"express-vue": "^5.12.0",
|
||||
"file-saver": "^2.0.5",
|
||||
"moment": "^2.29.4",
|
||||
"moment": "^2.30.1",
|
||||
"pinia": "^2.0.23",
|
||||
"roboto-fontface": "*",
|
||||
"v-tooltip": "^2.1.3",
|
||||
@@ -51,6 +55,11 @@
|
||||
"vite-plugin-vuetify": "^1.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/-": {
|
||||
"version": "0.0.1",
|
||||
"resolved": "https://registry.npmjs.org/-/-/--0.0.1.tgz",
|
||||
"integrity": "sha512-3HfneK3DGAm05fpyj20sT3apkNcvPpCuccOThOPdzz8sY7GgQGe0l93XH9bt+YzibcTIgUAIMoyVJI740RtgyQ=="
|
||||
},
|
||||
"node_modules/@aashutoshrathi/word-wrap": {
|
||||
"version": "1.2.6",
|
||||
"resolved": "https://registry.npmjs.org/@aashutoshrathi/word-wrap/-/word-wrap-1.2.6.tgz",
|
||||
@@ -6098,6 +6107,11 @@
|
||||
"node": ">=0.4.0"
|
||||
}
|
||||
},
|
||||
"node_modules/adapter": {
|
||||
"version": "1.0.0-beta.10",
|
||||
"resolved": "https://registry.npmjs.org/adapter/-/adapter-1.0.0-beta.10.tgz",
|
||||
"integrity": "sha512-4O3XRzPNeYfaEGFF+lIImH3tVJQEbA45+9oxGE0Y5PnqVmIoenmtvX/JA65n6Zt5TidRHcixLgb/1JcUuugK8w=="
|
||||
},
|
||||
"node_modules/address": {
|
||||
"version": "1.2.2",
|
||||
"resolved": "https://registry.npmjs.org/address/-/address-1.2.2.tgz",
|
||||
@@ -7421,6 +7435,20 @@
|
||||
"pnpm": ">=7"
|
||||
}
|
||||
},
|
||||
"node_modules/chartjs": {
|
||||
"version": "0.3.24",
|
||||
"resolved": "https://registry.npmjs.org/chartjs/-/chartjs-0.3.24.tgz",
|
||||
"integrity": "sha512-h6G9qcDqmFYnSWqjWCzQMeOLiypS+pM6Fq2Rj7LPty8Kjx5yHonwwJ7oEHImZpQ2u9Pu36XGYfardvvBiQVrhg=="
|
||||
},
|
||||
"node_modules/chartjs-adapter-moment": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/chartjs-adapter-moment/-/chartjs-adapter-moment-1.0.1.tgz",
|
||||
"integrity": "sha512-Uz+nTX/GxocuqXpGylxK19YG4R3OSVf8326D+HwSTsNw1LgzyIGRo+Qujwro1wy6X+soNSnfj5t2vZ+r6EaDmA==",
|
||||
"peerDependencies": {
|
||||
"chart.js": ">=3.0.0",
|
||||
"moment": "^2.10.2"
|
||||
}
|
||||
},
|
||||
"node_modules/chartjs-plugin-datalabels": {
|
||||
"version": "2.2.0",
|
||||
"resolved": "https://registry.npmjs.org/chartjs-plugin-datalabels/-/chartjs-plugin-datalabels-2.2.0.tgz",
|
||||
@@ -13800,9 +13828,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/moment": {
|
||||
"version": "2.29.4",
|
||||
"resolved": "https://registry.npmjs.org/moment/-/moment-2.29.4.tgz",
|
||||
"integrity": "sha512-5LC9SOxjSc2HF6vO2CyuTDNivEdoz2IvyJJGj6X8DJ0eFyfszE0QiEd+iXmBvUP3WHxSjFH/vIsA0EN00cgr8w==",
|
||||
"version": "2.30.1",
|
||||
"resolved": "https://registry.npmjs.org/moment/-/moment-2.30.1.tgz",
|
||||
"integrity": "sha512-uEmtNhbDOrWPFS+hdjFCBfy9f2YoyzRpwcl+DqpC6taX21FzsTLQVbMV/W7PzNSX6x/bhC1zA3c2UQ5NzH6how==",
|
||||
"engines": {
|
||||
"node": "*"
|
||||
}
|
||||
|
||||
@@ -10,16 +10,20 @@
|
||||
"build-storybook": "storybook build"
|
||||
},
|
||||
"dependencies": {
|
||||
"-": "^0.0.1",
|
||||
"@mdi/font": "7.0.96",
|
||||
"@vuelidate/core": "^2.0.3",
|
||||
"@vuelidate/validators": "^2.0.3",
|
||||
"adapter": "^1.0.0-beta.10",
|
||||
"axios": "^1.4.0",
|
||||
"chart.js": "^4.4.1",
|
||||
"chartjs": "^0.3.24",
|
||||
"chartjs-adapter-moment": "^1.0.1",
|
||||
"chartjs-plugin-datalabels": "^2.2.0",
|
||||
"date-fns": "^2.30.0",
|
||||
"express-vue": "^5.12.0",
|
||||
"file-saver": "^2.0.5",
|
||||
"moment": "^2.29.4",
|
||||
"moment": "^2.30.1",
|
||||
"pinia": "^2.0.23",
|
||||
"roboto-fontface": "*",
|
||||
"v-tooltip": "^2.1.3",
|
||||
|
||||
@@ -37,8 +37,8 @@ export default {
|
||||
datasets: [
|
||||
{
|
||||
label: 'Открыто страниц',
|
||||
backgroundColor: 'crimson',
|
||||
borderColor: 'crimson',
|
||||
backgroundColor: '#C62828',
|
||||
borderColor: '#C62828',
|
||||
borderWidth: 3,
|
||||
cubicInterpolationMode: 'monotone',
|
||||
data: [],
|
||||
@@ -53,17 +53,43 @@ export default {
|
||||
borderWidth: 3,
|
||||
cubicInterpolationMode: 'monotone',
|
||||
data: [],
|
||||
hidden: true,
|
||||
customlabel: [],
|
||||
tooltips: true
|
||||
}
|
||||
,
|
||||
{
|
||||
label: 'CRR',
|
||||
backgroundColor: 'blue',
|
||||
borderColor: 'blue',
|
||||
backgroundColor: '#673AB7',
|
||||
borderColor: '#673AB7',
|
||||
borderWidth: 3,
|
||||
cubicInterpolationMode: 'monotone',
|
||||
data: [],
|
||||
|
||||
customlabel: [],
|
||||
tooltips: true
|
||||
}
|
||||
,
|
||||
{
|
||||
label: 'BR',
|
||||
backgroundColor: '#283593',
|
||||
borderColor: '#283593',
|
||||
borderWidth: 3,
|
||||
cubicInterpolationMode: 'monotone',
|
||||
data: [],
|
||||
|
||||
customlabel: [],
|
||||
tooltips: true
|
||||
}
|
||||
,
|
||||
{
|
||||
label: 'PPV',
|
||||
backgroundColor: '#EF9A9A',
|
||||
borderColor: '#EF9A9A',
|
||||
borderWidth: 3,
|
||||
cubicInterpolationMode: 'monotone',
|
||||
data: [],
|
||||
|
||||
customlabel: [],
|
||||
tooltips: true
|
||||
}
|
||||
@@ -144,6 +170,9 @@ export default {
|
||||
const [key, value] = e
|
||||
arrlines.value.datasets[0].data.push(value.count)
|
||||
arrlines.value.datasets[1].data.push(value.unic.length)
|
||||
arrlines.value.datasets[2].data.push(value.crr)
|
||||
arrlines.value.datasets[3].data.push(value.br)
|
||||
arrlines.value.datasets[4].data.push(value.ppv)
|
||||
arrlines.value.labels.push(formatComa(key))
|
||||
arrlines.value.datasets[1].customlabel.push(props.dataLineChart[key].unic)
|
||||
})
|
||||
|
||||
@@ -13,12 +13,13 @@ import {
|
||||
LineElement,
|
||||
Title,
|
||||
Tooltip,
|
||||
Legend
|
||||
Legend,
|
||||
TimeScale
|
||||
} from 'chart.js'
|
||||
import { Line } from 'vue-chartjs'
|
||||
import * as chartConfig from './chartConfig.js'
|
||||
import ChartDataLabels from 'chartjs-plugin-datalabels'
|
||||
|
||||
import 'chartjs-adapter-moment'
|
||||
ChartJS.register(
|
||||
ChartDataLabels,
|
||||
CategoryScale,
|
||||
@@ -27,7 +28,8 @@ ChartJS.register(
|
||||
LineElement,
|
||||
Title,
|
||||
Tooltip,
|
||||
Legend
|
||||
Legend,
|
||||
TimeScale
|
||||
)
|
||||
|
||||
export default {
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
</v-col>
|
||||
<v-col>
|
||||
|
||||
<!-- <line-chart :dataLineChart="dataLineChart" :dataChart="dataChart"/> -->
|
||||
<line-chart :dataLineChart="dataLineChart" :dataChart="dataChart"/>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-col>
|
||||
@@ -48,7 +48,6 @@
|
||||
<feedmodul
|
||||
:feedback="feedback"
|
||||
/>
|
||||
<my-helper :pretext = dataChart />
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-col>
|
||||
|
||||
Reference in new issue
Block a user