fixing lineBarChart2
This commit is contained in:
parent
725b70d88f
commit
fea40d3c4e
@ -91,7 +91,7 @@ export default function Chart({ title, data1, data2, label, subtitle, dataset1,
|
|||||||
type: 'bar',
|
type: 'bar',
|
||||||
label: dataset1? dataset1 : '2021',
|
label: dataset1? dataset1 : '2021',
|
||||||
data: data1.map(value => value.economia_acumulada? value.economia_acumulada : 0),
|
data: data1.map(value => value.economia_acumulada? value.economia_acumulada : 0),
|
||||||
// backgroundColor: '#255488'
|
backgroundColor: '#255488'
|
||||||
// backgroundColor: (value, ctx) => {
|
// backgroundColor: (value, ctx) => {
|
||||||
// return data1[value.dataIndex]?.dad_estimado == false ? '#255488' : draw('diagonal-right-left', '#C2d5fb');
|
// return data1[value.dataIndex]?.dad_estimado == false ? '#255488' : draw('diagonal-right-left', '#C2d5fb');
|
||||||
// },
|
// },
|
||||||
@ -108,13 +108,13 @@ export default function Chart({ title, data1, data2, label, subtitle, dataset1,
|
|||||||
{
|
{
|
||||||
type: 'line',
|
type: 'line',
|
||||||
label: ['Acumulado'],
|
label: ['Acumulado'],
|
||||||
// backgroundColor: '#255488',
|
backgroundColor: '#255488',
|
||||||
data: [],
|
data: [],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'line',
|
type: 'line',
|
||||||
label: ['Estimado'],
|
label: ['Estimado'],
|
||||||
// backgroundColor: draw('diagonal-right-left', '#C2d5fb'),
|
backgroundColor: draw('diagonal-right-left', '#C2d5fb'),
|
||||||
data: [],
|
data: [],
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|||||||
@ -120,7 +120,7 @@ export function LineBarChart2({ title, subtitle, data1, data2, data3, label, red
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
const data = data2? {
|
const data: any = data2? {
|
||||||
labels,
|
labels,
|
||||||
datasets: [
|
datasets: [
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user