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

雷达图axisLabel显示报错 #8328

Closed
cn-xufei opened this issue May 12, 2018 · 8 comments
Closed

雷达图axisLabel显示报错 #8328

cn-xufei opened this issue May 12, 2018 · 8 comments

Comments

@cn-xufei
Copy link

One-line summary [问题简述]

radar中的axisLabel标签配置如果是show: true,会报错:e.getCategories is not a function

Version & Environment [版本及环境]

  • ECharts version [ECharts 版本]: 4.x
  • Browser version [浏览器类型和版本]:Chrome 66
  • OS Version [操作系统类型和版本]: win10

Expected behaviour [期望结果]

希望能正常显示

ECharts option [ECharts配置项]

option = {
    title: {
        text: '自定义雷达图'
    },
    legend: {
        
    },
    radar: [
        {
            axisLabel: {
                show: true
            },
            indicator: [
                { text: '语文', max: 150 },
                { text: '数学', max: 150 },
                { text: '英语', max: 150 },
                { text: '物理', max: 120 },
                { text: '化学', max: 108 },
                { text: '生物', max: 72 }
            ],
            center: ['50%', '50%'],
            radius: 120
        }
    ],
    series: {
            type: 'radar',
            data: [
                {
                    value: [120, 118, 130, 100, 99, 70],
                    name: '张三',
                    label: {
                        normal: {
                            show: true,
                            formatter:function(params) {
                                return params.value;
                            }
                        }
                    }
                },
                {
                    value: [90, 113, 140, 30, 70, 60],
                    name: '李四',
                    areaStyle: {
                        normal: {
                            opacity: 0.9,
                            color: new echarts.graphic.RadialGradient(0.5, 0.5, 1, [
                                {
                                    color: '#B8D3E4',
                                    offset: 0
                                },
                                {
                                    color: '#72ACD1',
                                    offset: 1
                                }
                            ])
                        }
                    }
                }
            ]
        }
}

Other comments [其他信息]

image

@100pah
Copy link
Member

100pah commented May 12, 2018

谢谢。并没有支持 radar.axisLabel.show: true。
我将修改下文档。
有需要支持这件事么?

@lmq0324
Copy link

lmq0324 commented May 31, 2018

@100pah 关于echarts中雷达图如何在线上面显示数字的问题。
从上述链接可见之前的版本是支持该功能的,希望可以恢复支持

@lmq0324
Copy link

lmq0324 commented May 31, 2018

#8301 相同问题

@HalfWater
Copy link

@100pah 是的,需要支持,非常需要,雷达图不能显示刻度,总觉得缺了点什么。

@mqliutie
Copy link

@100pah 需要

@lwl0812
Copy link

lwl0812 commented Sep 27, 2018

@100pah 关于echarts中雷达图如何在线上面显示数字的问题。
从上述链接可见之前的版本是支持该功能的,希望可以恢复支持

非常需要!求加上!

@cn-xufei
Copy link
Author

cn-xufei commented Nov 8, 2018

@100pah 你好,最新版本4.2.0-rc.2还没有支持 radar.axisLabel.show

@100pah
Copy link
Member

100pah commented May 13, 2019

Fixed in #10036

@100pah 100pah closed this as completed May 13, 2019
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

6 participants