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

有什么方法可以保证某几个词一定显示吗? #147

Open
HesterG opened this issue Aug 31, 2022 · 1 comment
Open

有什么方法可以保证某几个词一定显示吗? #147

HesterG opened this issue Aug 31, 2022 · 1 comment

Comments

@HesterG
Copy link

HesterG commented Aug 31, 2022

let options = {
    series: [ {
      type: 'wordCloud',
      sizeRange: [8, 40],
      rotationRange: [-90, 90],
      gridSize: 0,
      shape: 'circle',
      maskImage: maskImage,
      drawOutOfBound: true,
      layoutAnimation: false,
      keepAspect: true,
      textStyle: {
        fontWeight: 'bold',
        color: function () {
          return 'rgb(' + [
            Math.round(Math.random() * 200) + 50,
            Math.round(Math.random() * 50),
            Math.round(Math.random() * 50) + 50
          ].join(',') + ')';
        }
      },
      emphasis: {
        textStyle: {
          color: '#528'
        }
      },
      data: wordData
    }]
  };

用了maskImage 但是希望某些单词一定显示 ,如果设置drawOutOfBoundfalse会导致单词重叠,有什么别的方法吗

@Sai0514
Copy link

Sai0514 commented Nov 24, 2022

同问,不知是否有解决方案?

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

No branches or pull requests

2 participants