Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(axis): order of ticks for transposed x axis #4918

Merged
merged 1 commit into from
Apr 26, 2023
Merged

Conversation

pearmini
Copy link
Member

@pearmini pearmini commented Apr 26, 2023

  • 存在问题:Transpose 下的连续 x 坐标轴的 ticks 反序。
  • 解决办法:反序坐标轴。
Before After
image image
export function aaplLineBasicTranspose(): G2Spec {
  return {
    type: 'line',
    height: 640,
    width: 480,
    paddingLeft: 50,
    data: {
      type: 'fetch',
      value: 'data/aapl.csv',
    },
    coordinate: { transform: [{ type: 'transpose' }] },
    encode: {
      x: 'date',
      y: 'close',
    },
  };
}

@pearmini pearmini merged commit cf1cb88 into v5 Apr 26, 2023
4 checks passed
@pearmini pearmini deleted the fix/x-axis-transpose branch April 26, 2023 03:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants