From ed33c34a785db86b6b72ba72a24345f770b492c6 Mon Sep 17 00:00:00 2001 From: joseCorte-exe Date: Fri, 12 Aug 2022 16:16:07 -0300 Subject: [PATCH] changing dashboard styles --- src/components/graph/grossAnualChart/GrossAnualChart.tsx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/components/graph/grossAnualChart/GrossAnualChart.tsx b/src/components/graph/grossAnualChart/GrossAnualChart.tsx index bce3b4d..a2899ff 100644 --- a/src/components/graph/grossAnualChart/GrossAnualChart.tsx +++ b/src/components/graph/grossAnualChart/GrossAnualChart.tsx @@ -52,8 +52,6 @@ export function GrossAnualChart({ title, subtitle, dataProps, label, dataset, ba }, y: { stacked: false, - min: 0, - max: 1100, grid: { display: false }, @@ -84,14 +82,14 @@ export function GrossAnualChart({ title, subtitle, dataProps, label, dataset, ba }, display: true, anchor: "end", - offset: !miniature? 0 : -60, + offset: !miniature? 0 : -5, align: "start", font: { weight: 'bold', size: !miniature? window.innerWidth/70 : window.innerWidth/90, }, color: (value) => { - return value.dataset.label==='Consolidada'? '#000' : '#000' + return value.dataset.label==='Consolidada'? '#fff' : '#255488' }, }, legend: { @@ -111,8 +109,6 @@ export function GrossAnualChart({ title, subtitle, dataProps, label, dataset, ba labels = label } - console.log(dataProps) - const data: any = { labels, datasets: [