echarts [Bug] radar.axisName.width parameter is not working

w80xi6nr  于 4个月前  发布在  Echarts
关注(0)|答案(1)|浏览(43)

Version

5.4.3

https://echarts.apache.org/examples/en/editor.html?c=radar&code=PYBwLglsB2AEC8sDeAoWtJgDYFMBcya6GOAHmAQOQBCAhgM4QDGsASrQCa0BOsAwgAseYSkQC-AGiK4A5jmgcCqYrC5haBANqUAglizAmtMDg6xqAVw5yRE2LqZgLtLLADKIeRwjQZlALriUujcnDxKROg-3kZgwNxakcRIsNC0ALb49m4uOPQ5uPm5RYUFeWUl5cUVNdV1hZR26bSkBABsAKwADF2wkknoKWmZVDoc6T4Q9GChkDBjE9BTM8ZQ0AuT07NrG0tbqzCNsM2tsACMbT29_SqDqRlZlACS0ABm8c1zcAAqOEwC0GABhkAE8Xu9uJ81rBfv9AcCwW8Pgcfn8AUDgKCjicCABmK7XYK3IYPKh8CzTYCZXhuCwgEDxMDkynU9x0hncJkUuKs2n0xnYlp4gAcVz6RJUJJG9gAIjgAG44AwgTLQMByxXK1XqhVK0DajV6lXyHWa_Umw1ak2C04dABMYpuxPu0soAFkeABrHCQXwe7je30yf2BnzBr0-sMhyO-G0EO3dHp9JL-CWwFpTABypMIt1gAHcIBwwAJ4107AB6CvmACqAHECIXiwJYFNUsAwOn6VgIKZYANYAAjeIcHDcPgYhKwABE3FM07T6GH3FH3AA6kWS_HF7BgIruK8DPmCNOZhZoLEcAukk6nfQx736IlJQPho9LNYfbB5fRYPRPAoYaNAOYAgp4VChFw3DAXmagaLAmgDoMSHEPKLgWFkmgACwOuWsD4j0di4YR-GJnhZF4Wcoo9KmKHoG-oz6IYxh9h-NiiHm6BOnmyicegaFYBhWhkXYZxYVcRHUXhdqXCROESbAdpnFctF8fROYOE4LjuAB3ixihYgDoEKiGeggRiAA3EAA

Steps to Reproduce

  1. Create a radar chart
  2. Set borders to options.radar.axisName using borderColor and borderWidth properties to be able to visualize the issue
  3. Set a value for options.radar.axisName.width (https://echarts.apache.org/en/option.html#radar.axisName.width)

Current Behavior

The width of the radar's text box is not updated. This prevent us to use the truncate feature on radar's axisName for example.

Expected Behavior

The width of the radar's text box should be updated according to the options.radar.axisName.width parameter (https://echarts.apache.org/en/option.html#radar.axisName.width)

Environment

- OS: macOS Ventura 13.5
- Browser: Google Chrome
- Framework: Official editor (no framework needed)

Any additional comments?

No response

ryevplcw

ryevplcw1#

duplicate of #17319
workaround axisName: { formatter: (value) => { return value.length>12 ? value.substring(0, 12)+'...' : value; } .
See also alternative solutions in #13551

相关问题