diff --git a/models/enercoop_operation.py b/models/enercoop_operation.py index a10c976ddc3811780e09a0c2d5ef343c688738a3..5264ec8cee0ec5b0ccb7e8b2b49912367c3e86a3 100644 --- a/models/enercoop_operation.py +++ b/models/enercoop_operation.py @@ -233,20 +233,29 @@ class EnercoopOperation(models.Model): { 'label': 'Allo Conso', '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)', + 'borderWidth': 1, + 'hoverRadius': 1, + 'radius': 0, }, { 'label': 'Production solaire', 'data': chart_data['prod_line'], 'backgroundColor': 'rgba(244, 165, 25, 0)', 'borderColor': 'rgba(244, 165, 25, 1)', + 'borderWidth': 2, + 'hoverRadius': 1, + 'radius': 0, }, { 'label': 'Autoconso', '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)', + 'borderWidth': 2, + 'hoverRadius': 1, + 'radius': 0, }, ], }, @@ -259,8 +268,8 @@ class EnercoopOperation(models.Model): 'label': 'Inférieur à 3', 'data': chart_data['doughnut_cons'], 'backgroundColor': [ - 'rgb(91, 154, 81)', - 'rgb(57, 120, 187)', + 'rgba(91, 154, 81, 0.4)', + 'rgba(57, 120, 187, 0.4)', ], 'borderWidth': 1 }], @@ -274,13 +283,13 @@ class EnercoopOperation(models.Model): { 'label': 'AutoConso', 'data': chart_data['autocons'], - 'backgroundColor': 'rgba(91, 154, 81, 0.7)', + 'backgroundColor': 'rgba(91, 154, 81, 0.4)', 'borderColor': 'rgba(91, 154, 81, 1)', }, { 'label': 'AlloConso', 'data': chart_data['cons'], - 'backgroundColor': 'rgba(57, 120, 187, 0.7)', + 'backgroundColor': 'rgba(57, 120, 187, 0.4)', 'borderColor': 'rgba(57, 120, 187, 1)', }] } @@ -324,14 +333,20 @@ class EnercoopOperation(models.Model): { 'label': 'Surplus', '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)', + 'borderWidth': 2, + 'hoverRadius': 1, + 'radius': 0, }, { 'label': 'Autoconso', '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)', + 'borderWidth': 2, + 'hoverRadius': 1, + 'radius': 0, }, ], }, @@ -344,8 +359,8 @@ class EnercoopOperation(models.Model): 'label': 'Inférieur à 3', 'data': chart_data['doughnut_prod'], 'backgroundColor': [ - 'rgb(91, 154, 81)', - 'rgb(225, 80, 96)', + 'rgba(91, 154, 81, 0.4)', + 'rgba(225, 80, 96, 0.4)', ], 'borderWidth': 1 }], @@ -359,14 +374,13 @@ class EnercoopOperation(models.Model): { 'label': 'AutoConso', 'data': chart_data['autocons'], - 'backgroundColor': 'rgba(91, 154, 81, 0.7)', + 'backgroundColor': 'rgba(91, 154, 81, 0.4)', 'borderColor': 'rgba(91, 154, 81, 1)', }, { 'label': 'Surplus', 'data': chart_data['surplus'], - # 'backgroundColor': 'rgba(192, 80, 77, 0.7)', - 'backgroundColor': 'rgba(225, 80, 96, 0.7)', + 'backgroundColor': 'rgba(225, 80, 96, 0.4)', 'borderColor': 'rgba(225, 80, 96, 1)', }] }