runchart x axis labels fix
This commit is contained in:
parent
e2b478657a
commit
b7e8c4fb5a
|
@ -273,7 +273,7 @@ func (self *RunChart) renderAxes(buffer *Buffer) {
|
||||||
|
|
||||||
// draw x axis time labels
|
// draw x axis time labels
|
||||||
for i := 1; i <= self.grid.linesCount; i++ {
|
for i := 1; i <= self.grid.linesCount; i++ {
|
||||||
labelTime := self.grid.timeExtremum.max.Add(time.Duration(-i) * time.Second)
|
labelTime := self.grid.timeExtremum.max.Add(time.Duration(-i) * self.grid.paddingDuration)
|
||||||
buffer.SetString(
|
buffer.SetString(
|
||||||
labelTime.Format("15:04:05"),
|
labelTime.Format("15:04:05"),
|
||||||
NewStyle(ColorWhite),
|
NewStyle(ColorWhite),
|
||||||
|
|
Loading…
Reference in New Issue