ecomfe / echarts-wordcloud

Word Cloud extension based on Apache ECharts and wordcloud2.js
1.62k stars 707 forks source link

there are maybe some bug when I use some similer words ? #130

Open lanxisama opened 2 years ago

lanxisama commented 2 years ago

version:

// this is my data source
  const data = [
    {
      name: 'Farrah Abraham',
      value: 366,
    },
    {
      name: 'Farrah Abraham1',
      value: 306,
    },
    {
      name: 'Farrah Abraha2m',
      value: 206,
    },
  ];

There are three different words in this data,but there has somewhat similar.

wordCloud-bug1 This screen shot is my result, I think there has some touble,because I use other data source like otherData

  const otherData = [
    {
      name: 'A',
      value: 366,
    },
    {
      name: B',
      value: 306,
    },
    {
      name: 'C',
      value: 206,
    },
  ];

)J373B7O{37N}MQT4QE2JHY In this one,its right result I think. What different in this two data source?