mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-03-05 15:48:35 -05:00
Fix line chart axis labels overlap issue
This commit is contained in:
@@ -33,13 +33,23 @@
|
||||
axisX: {
|
||||
// Lets offset the chart a bit from the labels
|
||||
offset: 120,
|
||||
position: 'end'
|
||||
position: 'end',
|
||||
// offset the labels a bit from the axis to avoid overlaps
|
||||
labelOffset: {
|
||||
x: 0,
|
||||
y: 20
|
||||
}
|
||||
},
|
||||
|
||||
// Y-Axis specific configuration
|
||||
axisY: {
|
||||
// Lets offset the chart a bit from the labels
|
||||
offset: 60,
|
||||
offset: 80,
|
||||
// offset the labels a bit from the axis to avoid overlaps
|
||||
labelOffset: {
|
||||
x: -20,
|
||||
y: 0
|
||||
},
|
||||
// The label interpolation function enables you to modify the values
|
||||
// used for the labels on each axis.
|
||||
labelInterpolationFnc: function(value) {
|
||||
|
||||
Reference in New Issue
Block a user