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(layout): auto inset ignore null bbox #5228

Merged
merged 2 commits into from
Jun 26, 2023
Merged

fix(layout): auto inset ignore null bbox #5228

merged 2 commits into from
Jun 26, 2023

Conversation

pearmini
Copy link
Member

export function mockIntervalFacetRectPolar(): G2Spec {
  return {
    type: 'facetRect',
    height: 320,
    data: [
      { type: 'A', value: 1, n: 64 },
      { type: 'A', value: 2, n: 37 },
      { type: 'A', value: 3, n: 29 },
      { type: 'B', value: 1, n: 58 },
      { type: 'B', value: 2, n: 38 },
      { type: 'B', value: 3, n: 25 },
    ],
    encode: { x: 'type' },
    children: [
      {
        type: 'interval',
        frame: false,
        coordinate: { type: 'polar' },
        encode: {
          x: 'value',
          y: 'n',
          color: 'value',
        },
        axis: { y: { label: false, title: false }, x: { title: false } },
      },
    ],
  };
}

@pearmini pearmini requested a review from hustcc June 25, 2023 07:37
@pearmini pearmini force-pushed the fix/layout branch 2 times, most recently from 3246439 to 56cd9f7 Compare June 25, 2023 08:59
src/composition/facetRect.ts Show resolved Hide resolved
@pearmini pearmini merged commit 582c494 into v5 Jun 26, 2023
3 checks passed
@pearmini pearmini deleted the fix/layout branch June 26, 2023 01:39
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.

facetRect 设置 coordinate({ type: 'polar' }) 失效
2 participants