Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ajout plot band "période de référence" graphique trajectoire #473

Merged
merged 4 commits into from
Jun 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 4 additions & 14 deletions project/charts/ObjectiveChart.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,25 +28,15 @@ class ObjectiveChart(ProjectChart):
"categories": [str(i) for i in range(2011, 2031)],
"plotBands": [
{
"color": "#f4faff",
"from": 2011,
"to": 2021,
"color": "#e5f3ff",
"from": -1,
"to": 9,
"label": {
"text": "Période de référence",
"text": "Période de référence de la loi Climat & Résilience",
"style": {"color": "#95ceff", "fontWeight": "bold"},
},
"className": "plotband_blue",
},
{
"color": "#f6fff4",
"from": 2022,
"to": 2031,
"label": {
"text": "Projection 2031",
"style": {"color": "#87cc78", "fontWeight": "bold"},
},
"className": "plotband_green",
},
],
},
"legend": {"layout": "horizontal", "align": "center", "verticalAlign": "top"},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ <h6 class="fr-mt-2w">Données</h6>

<div class="table-responsive">
<table class="fr-table">
<caption>Consommation réelle et projetté, annuelle et cumulée (en ha)</caption>
<caption>Consommation réelle et projettée, annuelle et cumulée (en ha)</caption>
<thead>
<tr>
<th scope="col">Millésime</th>
Expand Down