Commit f62151f4831dd29a52c5f5c3ce700fdf91a27f27
1 parent
73359858
Exists in
master
and in
4 other branches
Add y axis title
Showing
1 changed file
with
9 additions
and
0 deletions
Show diff stats
app/main/templates/agent.html
... | ... | @@ -88,6 +88,15 @@ |
88 | 88 | .attr("dy", ".15em") |
89 | 89 | .attr("transform", "rotate(-65)"); |
90 | 90 | |
91 | + | |
92 | + svg.append("text") | |
93 | + .attr("text-anchor", "end") | |
94 | + .attr("transform", "rotate(-90)") | |
95 | + .attr("y", -margin.left+60) | |
96 | + .attr("x", -margin.top-70) | |
97 | + .text("Charge (ETP)") | |
98 | + | |
99 | + | |
91 | 100 | // Ajout de l'axe Y au SVG avec 6 éléments de légende en utilisant la fonction ticks (sinon D3JS en place autant qu'il peut). |
92 | 101 | svg.append("g") |
93 | 102 | .call(d3.axisLeft(y).ticks(6)); | ... | ... |