chartjs / Chart.js

Simple HTML5 Charts using the <canvas> tag
https://www.chartjs.org/
MIT License
63.9k stars 11.88k forks source link

#11637 x label text direction #11761

Closed asand2113 closed 1 week ago

asand2113 commented 2 months ago

For Issue #11637

The suggestion in the Issue description was insufficient for solving this problem, so I instead chose to automatically rotate any angle for the text labels between π/2 and π by an additional π, resulting in the same perceived angle, but now with the text facing correctly upward. I left rotations of π to 2π alone, as the text faces a desired and readable angle, meaning that it might be an intended use case by the user.