echarts icon indicating copy to clipboard operation
echarts copied to clipboard

[Bug] 使用Vue3渲染雷达图,控制台出现The ticks may be not readable

Open LeeYuze opened this issue 3 years ago • 19 comments

Version

5.4.0

Link to Minimal Reproduction

No response

Steps to Reproduce

{ tooltip: { trigger: 'axis', axisPointer: { // 坐标轴指示器,坐标轴触发有效 type: 'shadow' // 默认为直线,可选为:'line' | 'shadow' } }, radar: { radius: '50%', center: ['50%', '42%'], splitNumber: 8, splitArea: { areaStyle: { color: ['rgba(127,95,132,.3)'], opacity: 1, shadowBlur: 45, shadowColor: 'rgba(0,0,0,.5)', shadowOffsetX: 0, shadowOffsetY: 15 } }, indicator: [ { name: 'Sales', max: 10000 }, { name: 'Administration', max: 20000 }, { name: 'Information Technology', max: 20000 }, { name: 'Customer Support', max: 20000 }, { name: 'Development', max: 20000 }, { name: 'Marketing', max: 20000 } ] }, legend: { left: 'center', bottom: '10', data: ['Allocated Budget', 'Expected Spending', 'Actual Spending'] }, series: [ { type: 'radar', symbolSize: 0, areaStyle: { shadowBlur: 13, shadowColor: 'rgba(0,0,0,.2)', shadowOffsetX: 0, shadowOffsetY: 10, opacity: 1 }, data: [ { value: [5000, 7000, 12000, 11000, 15000, 14000], name: 'Allocated Budget' }, { value: [4000, 9000, 15000, 15000, 13000, 11000], name: 'Expected Spending' }, { value: [5500, 11000, 12000, 15000, 12000, 12000], name: 'Actual Spending' } ], animationDuration: 3000 } ] }

Current Behavior

使用vue3渲染雷达图,控制台就会出现⚠️The ticks may be not readable when set min: 0, max: 10000 and alignTicks: true 用官方的例子也会出现

Expected Behavior

我要如何修复它?

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

LeeYuze avatar Oct 13 '22 09:10 LeeYuze

@LeeYuze 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] Using Vue3 to render a radar map, The ticks may be not readable appears on the console

BODY

Version

5.4.0

Link to Minimal Reproduction

No response

Steps to Reproduce

{ tooltip: { trigger: 'axis', axisPointer: { // Coordinate axis indicator, the axis trigger is valid type: 'shadow' // default is straight line, optional: 'line' | 'shadow' } }, radar: { radius: '50%', center: ['50%', '42%'], splitNumber: 8, splitArea: { areaStyle: { color: ['rgba(127,95,132,.3)'], opacity: 1, shadowBlur: 45, shadowColor: 'rgba(0,0,0,.5)', shadowOffsetX: 0, shadowOffsetY: 15 } }, indicator: [ { name: 'Sales', max: 10000 }, { name: 'Administration', max: 20000 }, { name: 'Information Technology', max: 20000 }, { name: 'Customer Support', max: 20000 }, { name: 'Development', max: 20000 }, { name: 'Marketing', max: 20000 } ] }, legend: { left: 'center', bottom: '10', data: ['Allocated Budget', 'Expected Spending', 'Actual Spending'] }, series: [ { type: 'radar', symbolSize: 0, areaStyle: { shadowBlur: 13, shadowColor: 'rgba(0,0,0,.2)', shadowOffsetX: 0, shadowOffsetY: 10, opacity: 1 }, data: [ { value: [5000, 7000, 12000, 11000, 15000, 14000], name: 'Allocated Budget' }, { value: [4000, 9000, 15000, 15000, 13000, 11000], name: 'Expected Spending' }, { value: [5500, 11000, 12000, 15000, 12000, 12000], name: 'Actual Spending' } ], animationDuration: 3000 } ] }

Current Behavior

Use vue3 to render the radar chart, the console will appear ⚠️The ticks may be not readable when set min: 0, max: 10000 and alignTicks: true Using the official example will also appear

Expected Behavior

How do I fix it?

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

echarts-bot[bot] avatar Oct 13 '22 09:10 echarts-bot[bot]

这应该只是个开发时警告,用来提醒启用 alignTicks 时可能出现的一些问题。

plainheart avatar Oct 13 '22 10:10 plainheart

这应该只是个开发时警告,用来提醒启用 alignTicks 时可能出现的一些问题。

但是我也没开启这个alignTicks

LeeYuze avatar Oct 13 '22 13:10 LeeYuze

降低echarts版本可解决。

zhangzhen123hua avatar Nov 14 '22 02:11 zhangzhen123hua

我也有这个问题,同时数据不会展示出来

chesongsong avatar Dec 26 '22 09:12 chesongsong

  1. radar don't have option of alignTicks,but align radar's tick in code
  2. haven't check alignTicks' value before alignScaleTicks in radar

fyzhu avatar Jan 19 '23 09:01 fyzhu

你在indicator里面设置的max值修改下应该就可以了

linzhengyang avatar Mar 06 '23 04:03 linzhengyang

这bug都多久了还没解决。。

tyg6 avatar Aug 15 '23 07:08 tyg6

同问题

faintout avatar Feb 29 '24 09:02 faintout

同问题

suiucat avatar May 07 '24 01:05 suiucat

去掉indicator里的max

0kingbob0 avatar May 24 '24 11:05 0kingbob0

去掉indicator里的max

去掉雷达图就不准确了

magnificent007 avatar Sep 13 '24 08:09 magnificent007

这个问题什么时候解决呢

huang858563 avatar Oct 28 '24 13:10 huang858563