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(chart): chart.options should remove node #5103

Merged
merged 1 commit into from
May 26, 2023

Conversation

pearmini
Copy link
Member

修复 chart.options 不能删除节点的问题:

const chart = new Chart({});

chart.options({
  type: 'view',
  children: [{ type: 'line' }, { type: 'point' }],
});

chart.options({
  type: 'view',
  children: [{ type: 'line' }],
});

expect(chart.options()).toEqual({
  type: 'view',
  children: [{ type: 'line' }],
});

@pearmini pearmini requested a review from hustcc May 26, 2023 08:02
@hustcc hustcc merged commit 6949459 into v5 May 26, 2023
@hustcc hustcc deleted the fix/chart-options-remove-node branch May 26, 2023 10: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.

2 participants