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): null value for series mark #5099

Merged
merged 1 commit into from
May 26, 2023
Merged

fix(label): null value for series mark #5099

merged 1 commit into from
May 26, 2023

Conversation

pearmini
Copy link
Member

Label

对于 series mark(line 和 area), 有 label 的时候 y 为 null 的时候报错。

开始

export async function basicLineNullLabel(): Promise<G2Spec> {
  return {
    type: 'line',
    data: [
      { name: 'MODIFY', value: 138, washaway: 0.21014492753623193 },
      { name: 'PRERELEASE', value: 109, washaway: 0.5596330275229358 },
      { name: 'RELEASING', value: 48, washaway: 0 },
      { name: 'XXX', value: null, washaway: 0 },
    ],
    encode: {
      x: 'name',
      y: 'value',
    },
    labels: [{ text: 'name' }],
  };
}

@pearmini pearmini force-pushed the fix/series-null-label branch from 193b61f to e6d2bc9 Compare May 26, 2023 04:41
@hustcc hustcc merged commit a1db7aa into v5 May 26, 2023
@hustcc hustcc deleted the fix/series-null-label branch May 26, 2023 05:14
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.

2 participants