fix x-axis label collision (#4269)
* added custom class to labels * added rotation of -45deg to horizontal labels
This commit is contained in:
parent
e6bfa0259f
commit
63ea22f6a5
|
|
@ -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;
|
||||
}
|
||||
|
|
@ -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;
|
||||
}
|
||||
|
|
@ -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: {
|
||||
|
|
|
|||
Loading…
Reference in New Issue