Skip to content

雷达图没有clockwise选项,不能设置顺时针排列 #5190

Closed

Description

@iamziyue

One-line summary [问题简述]

雷达图默认为逆时针,没有设置为顺时针排列的选项

Version & Environment [版本及环境]

  • ECharts version [3.4.0]:
  • Browser version [Chrome最新内核]:
  • OS Version [Win10]:

Expected behaviour [期望结果]

ECharts option [ECharts配置项]

option ={
    "tooltip": {
        "show": false
    },
    "toolbox": {
        "feature": {
            "dataView": {},
            "saveAsImage": {}
        }
    },
    "radar": {
        "indicator": [
            {
                "name": "躯体化",
                "min": 1,
                "max": 5
            },
            {
                "name": "强迫症状",
                "min": 1,
                "max": 5
            },
            {
                "name": "人际敏感",
                "min": 1,
                "max": 5
            },
            {
                "name": "抑郁",
                "min": 1,
                "max": 5
            },
            {
                "name": "焦虑",
                "min": 1,
                "max": 5
            },
            {
                "name": "敌对",
                "min": 1,
                "max": 5
            },
            {
                "name": "恐怖",
                "min": 1,
                "max": 5
            },
            {
                "name": "偏执",
                "min": 1,
                "max": 5
            },
            {
                "name": "精神病性",
                "min": 1,
                "max": 5
            },
            {
                "name": "其他",
                "min": 1,
                "max": 5
            }
        ]
    },
    "series": [
        {
            "type": "radar",
            "areaStyle": {
                "normal": {}
            },
            "data": [
                {
                    "value": [
                        2.83,
                        2.1,
                        3,
                        2.62,
                        2.9,
                        2.17,
                        2.14,
                        2.83,
                        2.9,
                        2.29
                    ]
                }
            ]
        }
    ]
}

Other comments [其他信息]

Activity

  1. added
    stale
    on Aug 15, 2019
  2. mogazheng commented on Aug 20, 2019

    @mogazheng

    直到现在都没有解决方案?????

  3. removed
    stale
    on Aug 20, 2019
  4. vxhly commented on Oct 12, 2019

    @vxhly

    大哥,请问解决了吗,具体是那个配置项,把数据改成逆时针的也是醉了,正常不都顺时针?

  5. NsNe commented on Mar 4, 2020

    @NsNe

    怎么解决 +1

  6. A-ANing commented on Jun 18, 2021

    @A-ANing

    没有找到更好的方法了,竟然没有顺时针的配置项,逆向思维呀

          let { indicator, radardata } = this.props
    
          indicator && indicator.reverse()
    
          radardata[0].value && radardata[0].value.reverse()
    
          let offest = 360 / (indicator.length)
    
          let newOption = {
            radar: {
              radius: '70%',
              name: {
                textStyle: {
                  color: '#999',
                }
              },
              startAngle: 90 + offest,
              indicator: indicator
            },
    
    
            series: [{
              type: 'radar',
              data: radardata,
              label: {
                show: true,
                formatter: function (params) {
                  return params.value;
                }
              }
            }]
          };
  7. KrisadaFantasy commented on Sep 28, 2022

    @KrisadaFantasy

    It's make no sense to manually arrange data for clockwise arrangement. Please add clockwise option to radar!

  8. github-actions commented on Sep 27, 2024

    @github-actions
    Contributor

    This issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this issue.

  9. added
    stale
    on Sep 27, 2024
  10. KrisadaFantasy commented on Sep 28, 2024

    @KrisadaFantasy

    Not closing it please. I want clockwise option!

  11. removed
    stale
    on Sep 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions