diff --git a/timeline-chart/src/components/time-graph-axis-scale.ts b/timeline-chart/src/components/time-graph-axis-scale.ts index 4bda562..b34a631 100644 --- a/timeline-chart/src/components/time-graph-axis-scale.ts +++ b/timeline-chart/src/components/time-graph-axis-scale.ts @@ -107,7 +107,7 @@ export class TimeGraphAxisScale extends TimeGraphComponent { fontSize: 10, fill: lineColor }); - text.x = position.x + 5; + text.x = position.x - (text.width / 2); text.y = position.y + lineStyle(label).lineHeight; this.labels.push(text); this._displayObject.addChild(text); @@ -169,4 +169,4 @@ export class TimeGraphAxisScale extends TimeGraphComponent { end } } -} \ No newline at end of file +}