diff --git a/src/front/src/components/UI/aboutportal/line-chart.vue b/src/front/src/components/UI/aboutportal/line-chart.vue index b67fa9f3c..0c2a56a10 100644 --- a/src/front/src/components/UI/aboutportal/line-chart.vue +++ b/src/front/src/components/UI/aboutportal/line-chart.vue @@ -89,7 +89,7 @@ export default { data: [], func: (val)=>{return val.unic.length}, datakey: "unic", - hidden: true, + customlabel: [], tooltips: true, yAxisID: 'y' @@ -104,7 +104,7 @@ export default { data: [], func: (val, key)=>{ return parseFloat(crrfunc(key).toFixed(2)) }, - + hidden: true, datakey: "crr", customlabel: [], tooltips: true, @@ -193,11 +193,8 @@ export default { - - // const data = ref(datachanged.value) const crrfunc = (date)=>{ - // - // let h = new Date('2024-01-20') >=moment(new Date(date)).subtract(between.value*2, 'd') + let baseunic = unicperson(fullper.value.filter(e => new Date(e.visitdate) >=moment(new Date(date)).subtract(between.value*2, 'd') && new Date(e.visitdate) <= moment(new Date(date)).subtract(between.value, 'd'))) let crrunic = unicperson(fullper.value.filter(e => new Date(e.visitdate) >=moment(new Date(date)).subtract(between.value, 'd') && new Date(e.visitdate) <= new Date(date))) @@ -224,20 +221,8 @@ export default { - // watch(()=>data.value,()=>{ - // console.log(linear.value) - // if(linear.value!==null) { - - // console.log(linear.value.chart); - // // linear.value.chart.destroy() - // linear.value.chart.render(data.value, options) - // } - // }, {deep:true}) - const options = { - // layout: { - // padding: 20 - // }, + plugins: { datalabels: { @@ -255,20 +240,7 @@ export default { } }, - // tooltip: { - // displayColors: false, - // callbacks: { - // label: function(context) { - // let label = context.dataset.label || ''; - // if (context.datasetIndex==1) { - // if (context.parsed.y !== null) { - // label =arrlines.value.datasets[1].customlabel[context.dataIndex]; - // } - // return label - // } - // } - // } - // } + }, layout: { padding: { diff --git a/src/front/src/components/UI/aboutportal/line-chart2.vue b/src/front/src/components/UI/aboutportal/line-chart2.vue deleted file mode 100644 index 705680d1e..000000000 --- a/src/front/src/components/UI/aboutportal/line-chart2.vue +++ /dev/null @@ -1,179 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/front/src/components/UI/aboutportal/rating-page.vue b/src/front/src/components/UI/aboutportal/rating-page.vue index bcd8a8ad7..629b41111 100644 --- a/src/front/src/components/UI/aboutportal/rating-page.vue +++ b/src/front/src/components/UI/aboutportal/rating-page.vue @@ -33,13 +33,13 @@