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

[Feature] wordcloud 支持铺满画布 #2220

Closed
xiaoluoHe opened this issue Feb 5, 2024 · 0 comments · Fixed by #2224
Closed

[Feature] wordcloud 支持铺满画布 #2220

xiaoluoHe opened this issue Feb 5, 2024 · 0 comments · Fixed by #2224
Assignees

Comments

@xiaoluoHe
Copy link
Contributor

xiaoluoHe commented Feb 5, 2024

What problem does this feature solve?

词云支持铺满画布
img_v3_027p_cbfa31f4-d659-457e-b447-a0da9a91343g
现在:
image

const spec = {
  type: 'wordCloud',
  nameField: 'name',
  valueField: 'value',
  padding:0,
  width:300,
  height:100,
  background:'pink',
  maskShape:'square',
    wordCloudConfig: {
    zoomToFit: {
      shrink: true,
      fontSizeLimitMin: 5
    }
  },
  data: {
    name: 'baseData',
    values: [
      {
        name: '螺蛳粉',
        value: 957
      },
      {
        name: '钵钵鸡',
        value: 942
      },
      {
        name: '板栗',
        value: 842
      },
      {
        name: '胡辣汤',
        value: 828
      },
      {
        name: '关东煮',
        value: 665
      },
      {
        name: '羊肉汤',
        value: 627
      },
      {
        name: '热干面',
        value: 574
      }
    ]
  }
};

What does the proposed API look like?

maskShape: 'rect'
@xiaoluoHe xiaoluoHe changed the title [Feature] wordclout 支持铺满画布 [Feature] wordcloud 支持铺满画布 Feb 5, 2024
@skie1997 skie1997 mentioned this issue Feb 5, 2024
20 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 a pull request may close this issue.

2 participants