Skip to content

tsiclient graph right most label clipping 4015#49

Open
JimHui12 wants to merge 1 commit into
mainfrom
fix/graph-label-fix
Open

tsiclient graph right most label clipping 4015#49
JimHui12 wants to merge 1 commit into
mainfrom
fix/graph-label-fix

Conversation

@JimHui12
Copy link
Copy Markdown
Collaborator

Summary:
This change simplifies x-axis behavior by making the configured D3 time scale the single source of truth for horizontal placement.
In TemporalXAxisComponent.ts, createOffsetXAxis() now uses this.x.copy() directly instead of re-reading chartOptions.timeFrame.

Why:
Previously, x-axis geometry could be influenced by both:

  • chartOptions.timeFrame
  • this.x.domain()

That created two possible authorities for tick placement. This change removes that duplication so the axis always follows the final runtime scale that the owning chart has already configured.

Impact:
Keeps tick generation aligned with the actual rendered chart domain
Makes x-axis behavior easier to reason about and debug
Preserves the current behavior for existing consumers that already set this.x.domain(...) before drawing the axis

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant