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

支持词云图吗 #11182

Open
Athena-l opened this issue Nov 8, 2024 · 0 comments
Open

支持词云图吗 #11182

Athena-l opened this issue Nov 8, 2024 · 0 comments

Comments

@Athena-l
Copy link

Athena-l commented Nov 8, 2024

实现场景:

amis'支持echarts的大部分功能,那能不能实现词云图

存在的问题:

词云图配置之不显示

当前方案:

请粘贴你当前方案的完整 amis schema 代码...

{
  "type": "chart",
  "id": "chart2",
  "config": {
    "series": [
      {
        "type": "wordCloud",
        "sizeRange": [
          15,
          80
        ],
        "rotationRange": [
          0,
          0
        ],
        "rotationStep": 45,
        "gridSize": 8,
        "shape": "pentagon",
        "width": "100%",
        "height": "100%",
        "textStyle": {
          "normal": {
            "color": "function () {}",
            "fontFamily": "sans-serif",
            "fontWeight": "normal"
          },
          "emphasis": {
            "shadowBlur": 10,
            "shadowColor": "#333"
          }
        },
        "data": [
          {
            "name": "男神",
            "value": 2.64
          },
          {
            "name": "好身材",
            "value": 4.03
          },
          {
            "name": "校草",
            "value": 24.95
          },
          {
            "name": "酷",
            "value": 4.04
          },
          {
            "name": "时尚",
            "value": 5.27
          },
          {
            "name": "阳光活力",
            "value": 5.8
          },
          {
            "name": "初恋",
            "value": 3.09
          },
          {
            "name": "英俊潇洒",
            "value": 24.71
          },
          {
            "name": "霸气",
            "value": 6.33
          },
          {
            "name": "腼腆",
            "value": 2.55
          },
          {
            "name": "蠢萌",
            "value": 3.88
          },
          {
            "name": "青春",
            "value": 8.04
          },
          {
            "name": "网红",
            "value": 5.87
          },
          {
            "name": "萌",
            "value": 6.97
          },
          {
            "name": "认真",
            "value": 2.53
          },
          {
            "name": "古典",
            "value": 2.49
          },
          {
            "name": "温柔",
            "value": 3.91
          },
          {
            "name": "有个性",
            "value": 3.25
          },
          {
            "name": "可爱",
            "value": 9.93
          },
          {
            "name": "幽默诙谐",
            "value": 3.65
          }
        ]
      }
    ],
    "title": {
      "text": "文化程度"
    }
  },
  "dataFilter": "",
}
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

1 participant