changing dashboard styles
This commit is contained in:
parent
1b783a6a27
commit
ed33c34a78
@ -52,8 +52,6 @@ export function GrossAnualChart({ title, subtitle, dataProps, label, dataset, ba
|
|||||||
},
|
},
|
||||||
y: {
|
y: {
|
||||||
stacked: false,
|
stacked: false,
|
||||||
min: 0,
|
|
||||||
max: 1100,
|
|
||||||
grid: {
|
grid: {
|
||||||
display: false
|
display: false
|
||||||
},
|
},
|
||||||
@ -84,14 +82,14 @@ export function GrossAnualChart({ title, subtitle, dataProps, label, dataset, ba
|
|||||||
},
|
},
|
||||||
display: true,
|
display: true,
|
||||||
anchor: "end",
|
anchor: "end",
|
||||||
offset: !miniature? 0 : -60,
|
offset: !miniature? 0 : -5,
|
||||||
align: "start",
|
align: "start",
|
||||||
font: {
|
font: {
|
||||||
weight: 'bold',
|
weight: 'bold',
|
||||||
size: !miniature? window.innerWidth/70 : window.innerWidth/90,
|
size: !miniature? window.innerWidth/70 : window.innerWidth/90,
|
||||||
},
|
},
|
||||||
color: (value) => {
|
color: (value) => {
|
||||||
return value.dataset.label==='Consolidada'? '#000' : '#000'
|
return value.dataset.label==='Consolidada'? '#fff' : '#255488'
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
legend: {
|
legend: {
|
||||||
@ -111,8 +109,6 @@ export function GrossAnualChart({ title, subtitle, dataProps, label, dataset, ba
|
|||||||
labels = label
|
labels = label
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(dataProps)
|
|
||||||
|
|
||||||
const data: any = {
|
const data: any = {
|
||||||
labels,
|
labels,
|
||||||
datasets: [
|
datasets: [
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user