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

feat(facet): support legend filter #5593

Merged
merged 1 commit into from
Sep 25, 2023
Merged

feat(facet): support legend filter #5593

merged 1 commit into from
Sep 25, 2023

Conversation

pearmini
Copy link
Member

LegendFilter

多视图图表支持 legendFilter。

案例

facet-legend-filter

export function penguinsPointRepeatMatrixLegendFilter(): G2Spec {
  return {
    type: 'repeatMatrix',
    width: 480,
    height: 480,
    paddingLeft: 50,
    paddingBottom: 50,
    data: {
      type: 'fetch',
      value: 'data/penguins.csv',
    },
    encode: {
      position: ['culmen_length_mm', 'culmen_depth_mm'],
    },
    children: [
      {
        type: 'point',
        encode: {
          color: 'species',
        },
      },
    ],
  };
}

@pearmini pearmini merged commit 05a49ac into v5 Sep 25, 2023
2 checks passed
@pearmini pearmini deleted the optimize/splm branch September 25, 2023 07:26
@pearmini pearmini mentioned this pull request Sep 26, 2023
3 tasks
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.

3 participants