StatisticsFinland / PxVisualizer

https://statisticsfinland.github.io/PxVisualizer/
Apache License 2.0
3 stars 0 forks source link

Auto rotation for ordinal x axis labels #61

Open sakari-malkki opened 1 month ago

sakari-malkki commented 1 month ago

Auto rotation of 45 degrees is applied to non-numeric ordinal variable x axis labels if they do not fit the screen otherwise, same as with nominal variables.

Non-numeric and numeric ordinal labels defined based on whether any of the x axis group names contain characters that are not included in a set of allowed characters which are 0-9, - and locale based decimal point and thousands separator.

Added a new storybook fixture and tests to cover this case

sonarcloud[bot] commented 1 month ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
94.7% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud