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

fivyi3re  于 4个月前  发布在  Echarts
关注(0)|答案(5)|浏览(98)

Version

5.4.2

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

径向轴标签不显示

Expected Behavior

径向轴标签显示

Environment

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

Any additional comments?

No response

h4cxqtbf

h4cxqtbf1#

@bigfacewo It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗
TRANSLATED

TITLE

[Bug] Radar charts do not display radius axis labels

unhi4e5o

unhi4e5o2#

I think radar.indicator.name are the axis labels (Sales, Marketing, etc.).
What else do you expect to see, from your example ?

xu3bshqb

xu3bshqb4#

radiusAxis definition is "Radial axis of polar coordinate".
Also "Polar coordinate can be used in scatter and line chart" (...and bar charts).

From radar definition: "Radar chart coordinate is different from polar coordinate, in that every axis indicator of the radar chart coordinate is an individual dimension". So there is no radiusAxis in radar.

NB: please close issue if problem resolved.

brccelvz

brccelvz5#

So, can the style of displaying only one numerical axis be achieved using echarts?

相关问题