VisActor/VChart

[Bug] wordcloud fontSizeLimitMax not work

Open

#3.889 aberto em 11 de abr. de 2025

Ver no GitHub
 (2 comments) (0 reactions) (2 assignees)TypeScript (212 forks)user submission
buggood first issue

Métricas do repositório

Stars
 (1.800 stars)
Métricas de merge de PR
 (Mesclagem média 3d 12h) (15 fundiu PRs em 30d)

Description

Version

1.13.8

Link to Minimal Reproduction

null

Steps to Reproduce

const spec = {
  type: 'wordCloud',
  nameField: 'name',
  valueField: 'value',
  wordCloudConfig: {
    zoomToFit: {
      enlarge: true,
      fontSizeLimitMax: 20,
      // fontSizeLimitMin: 10,
    }
  },
  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
      }
    ]
  }
};
const vchart = new VChart(spec, { dom: CONTAINER_ID });
vchart.renderSync();

// Just for the convenience of console debugging, DO NOT COPY!
window['vchart'] = vchart;

Current Behavior

Image

Expected Behavior

fontsize is limited

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

Guia do colaborador