266 Star 1.8K Fork 323

GVPuCharts / uCharts

词云图有一定机率丢失词汇

缺陷
待办的
chor  Opened this issue

该问题是怎么引起的?

正常使用词云图,部分词汇无法在生成的词云图中显示出来

重现步骤

<view>
  <canvas canvas-id="canvasCloud" id="canvasCloud" class="charts"></canvas>
</view>
chartData1: {
  "series": [
    {"name":"自然科学","textSize":40,"color":"blue"},
    {"name":"社会科学总论","textSize":25,"color":"yellow"},
    {"name":"军事","textSize":42,"color":"gray"},
    {"name":"经济","textSize":27,"color":"gray"},
    {"name":"文化、科学、教育、体育","textSize":20,"color":"gray"},
    {"name":"语言、文字","textSize":20,"color":"gray"},
    {"name":"文学","textSize":15,"color":"gray"},
    {"name":"艺术","textSize":11,"color":"gray"},
    {"name":"历史、地理","textSize":20,"color":"gray"}
  ]
} 
onLoad(){
  new uCharts({
      $this: this,
      canvasId: "canvasCloud",
      type: 'word',
      background:'transparent',
      pixelRatio: 1,
      series: this.data.chartData.series,
      width: wx.getSystemInfoSync().windowWidth,
      height: 500 / 750 * wx.getSystemInfoSync().windowWidth,      
      extra: {
        word: {
          type: 'normal'
        }
      }
   }) 
}

报错信息

控制台无报错信息,生成的词云图如下:

输入图片说明

输入图片说明

部分词汇丢失了。

Attachments
total 1 participants

Comments (0)

Sign in to comment

Assignees
Labels
Not set
Projects
Milestones
Branches
Planed to start
Not set
Planed to end
Not set
Top level
Priority
JavaScript
1
https://git.oschina.net/uCharts/uCharts.git
git@git.oschina.net:uCharts/uCharts.git
uCharts
uCharts
uCharts

Search