From 0230c6ccf4d10e892f4f4ff587f5eba521958db1 Mon Sep 17 00:00:00 2001 From: Luiz Filipe Date: Tue, 16 Aug 2022 03:12:33 -0300 Subject: [PATCH] change font size pattern --- src/components/graph/config.ts | 6 +++--- src/components/graph/grossAnualChart/GrossAnualChart.tsx | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/graph/config.ts b/src/components/graph/config.ts index 919bfb6..4dc708c 100644 --- a/src/components/graph/config.ts +++ b/src/components/graph/config.ts @@ -11,7 +11,7 @@ const config = (miniature: boolean | undefined): ChartOptions => { }, ticks: { font: { - size: !miniature? window.innerWidth/90 : window.innerWidth/130 + size: !miniature? window.innerWidth/90 : window.innerWidth/125 } }, }, @@ -22,7 +22,7 @@ const config = (miniature: boolean | undefined): ChartOptions => { }, ticks: { font: { - size: !miniature? window.innerWidth/90 : window.innerWidth/130 + size: !miniature? window.innerWidth/90 : window.innerWidth/125 } }, }, @@ -45,7 +45,7 @@ const config = (miniature: boolean | undefined): ChartOptions => { align: "end", font: { weight: 'bold', - size: !miniature? window.innerWidth/80 : window.innerWidth/130 + size: !miniature? window.innerWidth/80 : window.innerWidth/125 } }, legend: { diff --git a/src/components/graph/grossAnualChart/GrossAnualChart.tsx b/src/components/graph/grossAnualChart/GrossAnualChart.tsx index c4644e8..344f069 100644 --- a/src/components/graph/grossAnualChart/GrossAnualChart.tsx +++ b/src/components/graph/grossAnualChart/GrossAnualChart.tsx @@ -46,7 +46,7 @@ export function GrossAnualChart({ title, subtitle, dataProps, label, dataset, ba }, ticks: { font: { - size: !miniature? window.innerWidth/90 : window.innerWidth/130 + size: !miniature? window.innerWidth/90 : window.innerWidth/125 } }, }, @@ -57,7 +57,7 @@ export function GrossAnualChart({ title, subtitle, dataProps, label, dataset, ba }, ticks: { font: { - size: !miniature? window.innerWidth/90 : window.innerWidth/130 + size: !miniature? window.innerWidth/90 : window.innerWidth/125 } }, }, @@ -86,7 +86,7 @@ export function GrossAnualChart({ title, subtitle, dataProps, label, dataset, ba align: "start", font: { weight: 'bold', - size: !miniature? window.innerWidth/80 : window.innerWidth/130, + size: !miniature? window.innerWidth/80 : window.innerWidth/125, }, color: (value) => { return value.dataset.label==='Consolidada'? '#fff' : '#255488'