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(label): support date label #5077

Merged
merged 1 commit into from
May 23, 2023
Merged

fix(label): support date label #5077

merged 1 commit into from
May 23, 2023

Conversation

pearmini
Copy link
Member

export function aaplIntervalDateEncodeX(): G2Spec {
  return {
    type: 'interval',
    padding: 'auto',
    height: 720,
    data: {
      type: 'fetch',
      value: 'data/aapl.csv',
      transform: [{ type: 'slice', start: 0, end: 10 }],
    },
    encode: {
      x: 'date',
      y: 'close',
    },
  };
}

@pearmini pearmini requested review from Aarebecca and hustcc May 23, 2023 07:51
@pearmini pearmini merged commit 826e000 into v5 May 23, 2023
@pearmini pearmini deleted the fix/date-label branch May 23, 2023 11:20
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.

条形图 x 为 date 对象会报错
3 participants