fix x-axis label collision (#4269)

* added custom class to labels

* added rotation of -45deg to horizontal labels
This commit is contained in:
Anshuman Tripathi 2024-09-10 16:22:11 +05:30 committed by GitHub
parent e6bfa0259f
commit 63ea22f6a5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 13 additions and 0 deletions

View File

@ -644,3 +644,8 @@
.current-series .ct-point, .current-series .ct-line {
stroke: blue;
}
// Custom override of chartist classes
.ct-custom-label.ct-horizontal {
rotate: -45deg;
}

View File

@ -643,4 +643,9 @@
.current-series .ct-point, .current-series .ct-line {
stroke: blue;
}
// Custom override of chartist classes
.ct-custom-label.ct-horizontal {
rotate: -45deg;
}

View File

@ -15,6 +15,9 @@ script(type='text/javascript').
const visualProgressChart = new Chartist.Line('#ct-visualprogress', {
series: [!{JSON.stringify(seriesVisualProgress)}],
}, {
classNames: {
label: 'ct-label ct-custom-label'
},
showArea: true,
showPoint: true,
chartPadding: {