Skip to content

[Bug] 雷达图不显示radiusAxis的轴标签 #18722

@bigfacewo

Description

@bigfacewo

Version

5.4.2

Link to Minimal Reproduction

https://codesandbox.io/s/x0gmtn?file=/index.js

Steps to Reproduce

雷达图

options:

{
  title: {
    text: 'Basic Radar Chart'
  },
  legend: {
    data: ['Allocated Budget', 'Actual Spending']
  },
  polar: {
    
  },
  radiusAxis: {
    type: 'value',
    axisLine: {
      show: true
    },
    axisLabel: {
      show: true,
      color: '#000',
      interval: 'auto'
    },
    z: 10000
  },
  angleAxis: {
    axisLine: {
      show: false
    },
  },
  radar: {
    // shape: 'circle',
    indicator: [
      { name: 'Sales', max: 6500 },
      { name: 'Administration', max: 16000 },
      { name: 'Information Technology', max: 30000 },
      { name: 'Customer Support', max: 38000 },
      { name: 'Development', max: 52000 },
      { name: 'Marketing', max: 25000 }
    ]
  },
  series: [
    {
      name: 'Budget vs spending',
      type: 'radar',
      z: 1,
      axisLabel: {
        show: true,
        color: '#000'
      },
      data: [
        {
          value: [4200, 3000, 20000, 35000, 50000, 18000],
          name: 'Allocated Budget'
        },
        {
          value: [5000, 14000, 28000, 26000, 42000, 21000],
          name: 'Actual Spending'
        }
      ]
    }
  ]
};

Current Behavior

径向轴标签不显示

image

Expected Behavior

径向轴标签显示

Environment

- OS: win11
- Browser: chrome 113.0.5672.127
- Framework: 无

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugpendingWe are not sure about whether this is a bug/new feature.staleInactive for a long time. Will be closed in 7 days.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions