feat: ability to rotate regiments

This commit is contained in:
Azgaar 2024-06-16 00:15:49 +02:00
parent dd3599506f
commit 147d57640e
5 changed files with 86 additions and 45 deletions

View file

@ -339,10 +339,7 @@ function showElevationProfile(data, routeLen, isRiver) {
.attr("transform", "translate(" + xOffset + "," + parseInt(chartHeight + +yOffset + 20) + ")")
.call(xAxis)
.selectAll("text")
.style("text-anchor", "center")
.attr("transform", function (d) {
return "rotate(0)"; // used to rotate labels, - anti-clockwise, + clockwise
});
.style("text-anchor", "center");
chart
.append("g")