Smaller fonts

This commit is contained in:
Luiz Filipe 2022-08-16 02:59:01 -03:00
parent a2077f03d5
commit e94401c78d
2 changed files with 5 additions and 5 deletions

View File

@ -11,7 +11,7 @@ const config = (miniature: boolean | undefined): ChartOptions<ChartType> => {
}, },
ticks: { ticks: {
font: { font: {
size: !miniature? window.innerWidth/90 : window.innerWidth/110 size: !miniature? window.innerWidth/90 : window.innerWidth/130
} }
}, },
}, },
@ -22,7 +22,7 @@ const config = (miniature: boolean | undefined): ChartOptions<ChartType> => {
}, },
ticks: { ticks: {
font: { font: {
size: !miniature? window.innerWidth/90 : window.innerWidth/110 size: !miniature? window.innerWidth/90 : window.innerWidth/130
} }
}, },
}, },
@ -45,7 +45,7 @@ const config = (miniature: boolean | undefined): ChartOptions<ChartType> => {
align: "end", align: "end",
font: { font: {
weight: 'bold', weight: 'bold',
size: !miniature? window.innerWidth/80 : window.innerWidth/105 size: !miniature? window.innerWidth/80 : window.innerWidth/130
} }
}, },
legend: { legend: {

View File

@ -46,7 +46,7 @@ export function GrossAnualChart({ title, subtitle, dataProps, label, dataset, ba
}, },
ticks: { ticks: {
font: { font: {
size: !miniature? window.innerWidth/90 : window.innerWidth/110 size: !miniature? window.innerWidth/90 : window.innerWidth/130
} }
}, },
}, },
@ -57,7 +57,7 @@ export function GrossAnualChart({ title, subtitle, dataProps, label, dataset, ba
}, },
ticks: { ticks: {
font: { font: {
size: !miniature? window.innerWidth/90 : window.innerWidth/110 size: !miniature? window.innerWidth/90 : window.innerWidth/130
} }
}, },
}, },