apache / echarts

Apache ECharts is a powerful, interactive charting and data visualization library for browser
https://echarts.apache.org
Apache License 2.0
60.54k stars 19.61k forks source link

[Bug] radar.axisName.width parameter is not working #19018

Open Emmanuel-Nativel opened 1 year ago

Emmanuel-Nativel commented 1 year ago

Version

5.4.3

Link to Minimal Reproduction

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

helgasoft commented 1 year ago

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