Skip to content
Extraits de code Groupes Projets
Valider 4795aa52 rédigé par Benjamin - Le Filament's avatar Benjamin - Le Filament
Parcourir les fichiers

[update] graphs style

parent 58f0e887
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -233,20 +233,29 @@ class EnercoopOperation(models.Model): ...@@ -233,20 +233,29 @@ class EnercoopOperation(models.Model):
{ {
'label': 'Allo Conso', 'label': 'Allo Conso',
'data': chart_data['cons_line'], 'data': chart_data['cons_line'],
'backgroundColor': 'rgba(57, 120, 187, 0.7)', 'backgroundColor': 'rgba(57, 120, 187, 0.2)',
'borderColor': 'rgba(57, 120, 187, 1)', 'borderColor': 'rgba(57, 120, 187, 1)',
'borderWidth': 1,
'hoverRadius': 1,
'radius': 0,
}, },
{ {
'label': 'Production solaire', 'label': 'Production solaire',
'data': chart_data['prod_line'], 'data': chart_data['prod_line'],
'backgroundColor': 'rgba(244, 165, 25, 0)', 'backgroundColor': 'rgba(244, 165, 25, 0)',
'borderColor': 'rgba(244, 165, 25, 1)', 'borderColor': 'rgba(244, 165, 25, 1)',
'borderWidth': 2,
'hoverRadius': 1,
'radius': 0,
}, },
{ {
'label': 'Autoconso', 'label': 'Autoconso',
'data': chart_data['autocons_line'], 'data': chart_data['autocons_line'],
'backgroundColor': 'rgba(91, 154, 81, 0.7)', 'backgroundColor': 'rgba(91, 154, 81, 0.4)',
'borderColor': 'rgba(91, 154, 81, 1)', 'borderColor': 'rgba(91, 154, 81, 1)',
'borderWidth': 2,
'hoverRadius': 1,
'radius': 0,
}, },
], ],
}, },
...@@ -259,8 +268,8 @@ class EnercoopOperation(models.Model): ...@@ -259,8 +268,8 @@ class EnercoopOperation(models.Model):
'label': 'Inférieur à 3', 'label': 'Inférieur à 3',
'data': chart_data['doughnut_cons'], 'data': chart_data['doughnut_cons'],
'backgroundColor': [ 'backgroundColor': [
'rgb(91, 154, 81)', 'rgba(91, 154, 81, 0.4)',
'rgb(57, 120, 187)', 'rgba(57, 120, 187, 0.4)',
], ],
'borderWidth': 1 'borderWidth': 1
}], }],
...@@ -274,13 +283,13 @@ class EnercoopOperation(models.Model): ...@@ -274,13 +283,13 @@ class EnercoopOperation(models.Model):
{ {
'label': 'AutoConso', 'label': 'AutoConso',
'data': chart_data['autocons'], 'data': chart_data['autocons'],
'backgroundColor': 'rgba(91, 154, 81, 0.7)', 'backgroundColor': 'rgba(91, 154, 81, 0.4)',
'borderColor': 'rgba(91, 154, 81, 1)', 'borderColor': 'rgba(91, 154, 81, 1)',
}, },
{ {
'label': 'AlloConso', 'label': 'AlloConso',
'data': chart_data['cons'], 'data': chart_data['cons'],
'backgroundColor': 'rgba(57, 120, 187, 0.7)', 'backgroundColor': 'rgba(57, 120, 187, 0.4)',
'borderColor': 'rgba(57, 120, 187, 1)', 'borderColor': 'rgba(57, 120, 187, 1)',
}] }]
} }
...@@ -324,14 +333,20 @@ class EnercoopOperation(models.Model): ...@@ -324,14 +333,20 @@ class EnercoopOperation(models.Model):
{ {
'label': 'Surplus', 'label': 'Surplus',
'data': chart_data['surplus_line'], 'data': chart_data['surplus_line'],
'backgroundColor': 'rgba(225, 80, 96, 0.7)', 'backgroundColor': 'rgba(225, 80, 96, 0.4)',
'borderColor': 'rgba(225, 80, 96, 1)', 'borderColor': 'rgba(225, 80, 96, 1)',
'borderWidth': 2,
'hoverRadius': 1,
'radius': 0,
}, },
{ {
'label': 'Autoconso', 'label': 'Autoconso',
'data': chart_data['autocons_line'], 'data': chart_data['autocons_line'],
'backgroundColor': 'rgba(91, 154, 81, 0.7)', 'backgroundColor': 'rgba(91, 154, 81, 0.4)',
'borderColor': 'rgba(91, 154, 81, 1)', 'borderColor': 'rgba(91, 154, 81, 1)',
'borderWidth': 2,
'hoverRadius': 1,
'radius': 0,
}, },
], ],
}, },
...@@ -344,8 +359,8 @@ class EnercoopOperation(models.Model): ...@@ -344,8 +359,8 @@ class EnercoopOperation(models.Model):
'label': 'Inférieur à 3', 'label': 'Inférieur à 3',
'data': chart_data['doughnut_prod'], 'data': chart_data['doughnut_prod'],
'backgroundColor': [ 'backgroundColor': [
'rgb(91, 154, 81)', 'rgba(91, 154, 81, 0.4)',
'rgb(225, 80, 96)', 'rgba(225, 80, 96, 0.4)',
], ],
'borderWidth': 1 'borderWidth': 1
}], }],
...@@ -359,14 +374,13 @@ class EnercoopOperation(models.Model): ...@@ -359,14 +374,13 @@ class EnercoopOperation(models.Model):
{ {
'label': 'AutoConso', 'label': 'AutoConso',
'data': chart_data['autocons'], 'data': chart_data['autocons'],
'backgroundColor': 'rgba(91, 154, 81, 0.7)', 'backgroundColor': 'rgba(91, 154, 81, 0.4)',
'borderColor': 'rgba(91, 154, 81, 1)', 'borderColor': 'rgba(91, 154, 81, 1)',
}, },
{ {
'label': 'Surplus', 'label': 'Surplus',
'data': chart_data['surplus'], 'data': chart_data['surplus'],
# 'backgroundColor': 'rgba(192, 80, 77, 0.7)', 'backgroundColor': 'rgba(225, 80, 96, 0.4)',
'backgroundColor': 'rgba(225, 80, 96, 0.7)',
'borderColor': 'rgba(225, 80, 96, 1)', 'borderColor': 'rgba(225, 80, 96, 1)',
}] }]
} }
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter