changing button telemetry color
This commit is contained in:
parent
7250acbe4e
commit
3415e74c88
@ -20,7 +20,7 @@ export const GradientButtonView = styled.button`
|
||||
color: #FFFFFF;
|
||||
|
||||
background: ${ props => props.color==='orange'?
|
||||
'linear-gradient(200.86deg, #e7992f 8.03%, #e7992f 91.97%), #FFFFFF'
|
||||
'linear-gradient(200.86deg, #ff7f59 8.03%, #df4b1f 91.97%),#FFFFFF'
|
||||
:
|
||||
props.color === 'purple'?
|
||||
'linear-gradient(200.69deg, #254f7f 9%, #254f7f 98%), #FFFFFF'
|
||||
|
||||
@ -47,11 +47,11 @@ export default function Chart({ title, data1, data2, label, subtitle, dataset1,
|
||||
const options: any = {
|
||||
responsive: true,
|
||||
scales: {
|
||||
yAxes: [{
|
||||
gridLines: {
|
||||
color: "rgba(0, 0, 0, 0)",
|
||||
}
|
||||
}]
|
||||
x: {
|
||||
grid: {
|
||||
display: false
|
||||
}
|
||||
},
|
||||
},
|
||||
plugins: {
|
||||
datalabels: {
|
||||
|
||||
@ -93,7 +93,7 @@ export default function Chart({ title, data1, data2, label, subtitle, dataset1,
|
||||
label: dataset1? dataset1 : '2021',
|
||||
data: data1.map(value => value.economia_acumulada? value.economia_acumulada : 0),
|
||||
backgroundColor: (value, ctx) => {
|
||||
return data2[value.dataIndex]?.dad_estimado == false ? '#255488' : draw('diagonal-right-left', '#C2d5fb');
|
||||
return data1[value.dataIndex]?.dad_estimado == false ? '#255488' : draw('diagonal-right-left', '#C2d5fb');
|
||||
},
|
||||
},
|
||||
{
|
||||
|
||||
@ -255,11 +255,6 @@ export const Buttons = styled.div`
|
||||
|
||||
color: #FFFFFF;
|
||||
|
||||
:nth-child(2) {
|
||||
font-size: 11px;
|
||||
background: linear-gradient(200.86deg, #F48665 8.03%, #F48665 91.97%), #FFFFFF;
|
||||
}
|
||||
|
||||
box-shadow: 0.5px 3px 10px rgba(119, 119, 119, 0.1);
|
||||
|
||||
border-style: none;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user