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(area): one missing point #5229

Merged
merged 1 commit into from
Jun 25, 2023
Merged

fix(area): one missing point #5229

merged 1 commit into from
Jun 25, 2023

Conversation

pearmini
Copy link
Member

@pearmini pearmini commented Jun 25, 2023

fix: #5160

export function mockAreaMissingData(): G2Spec {
  return {
    type: 'area',
    padding: 'auto',
    data: [
      { province: 'A', city: 'a', categories: 'Q1', gross: null },
      { province: 'B', city: 'b', categories: 'Q2', gross: 2610.5 },
      { province: 'B', city: 'c', categories: 'Q2', gross: 417.23 },
    ],
    encode: {
      x: 'city',
      y: 'gross',
      shape: 'smooth',
      color: (d) => `${d.province}+${d.categories}`,
    },
  };
}

@pearmini pearmini changed the title Fix/area missing data fix(area): one missing point Jun 25, 2023
@pearmini pearmini merged commit 4977031 into v5 Jun 25, 2023
2 of 3 checks passed
@pearmini pearmini deleted the fix/area-missing-data branch June 25, 2023 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants