changing dashboard styles

This commit is contained in:
joseCorte-exe 2022-08-12 16:06:14 -03:00
parent 8c833d4d57
commit 1b783a6a27
3 changed files with 10 additions and 5 deletions

View File

@ -36,7 +36,8 @@ export const ChartCardView = styled.article`
color: #254F7F;
p {
font-size: 20px;
text-decoration: underline;
color: #018A8A;
margin-left: 5px
}
}

View File

@ -51,7 +51,9 @@ export function GrossAnualChart({ title, subtitle, dataProps, label, dataset, ba
},
},
y: {
stacked: true,
stacked: false,
min: 0,
max: 1100,
grid: {
display: false
},
@ -82,14 +84,14 @@ export function GrossAnualChart({ title, subtitle, dataProps, label, dataset, ba
},
display: true,
anchor: "end",
offset: !miniature? 0 : -5,
offset: !miniature? 0 : -60,
align: "start",
font: {
weight: 'bold',
size: !miniature? window.innerWidth/70 : window.innerWidth/90,
},
color: (value) => {
return value.dataset.label==='Consolidada'? '#fff' : '#255488'
return value.dataset.label==='Consolidada'? '#000' : '#000'
},
},
legend: {
@ -109,6 +111,8 @@ export function GrossAnualChart({ title, subtitle, dataProps, label, dataset, ba
labels = label
}
console.log(dataProps)
const data: any = {
labels,
datasets: [