[Bug] xAxis.nameTextStyle.width doesn't appear to work

Open
#21,513 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
typescript

Research direction

Start with the linked ECharts example sandbox and reproduce the xAxis.nameTextStyle.width behavior in Chrome. Search the repository for the xAxis nameTextStyle implementation and related tests, then verify that changing width affects the rendered axis name while height continues to work.

Written by the indexing model from the issue text.

Description

bug en pending
Version

Whichever version is in the eCharts example sandbox

Link to Minimal Reproduction

https://echarts.apache.org/examples/en/editor.html?c=bar-simple&code=pVZNb9swDL33Vwi-9FKgSbu0Q4Yd2gHbDt0GLAW6YehBiZVYqGwZstzEG_LfR1vfsp2s66EpRFISnx75aF5Kygv0Hv05QSgjdJPJOZpOJpMzWG9pKjNYXqjl7mZHq3kXiZBsSjJHpyssyYaL5rQNQKjAOViTr_AvURbM6Ka4p6sn2ClFTVzcHYfNcHl7CikkEd4Zn3A5R5cXznBPdnIhGwanq_sRWnHGBVy2ZHj1pG9DaM2LykQmBRc5Zr5PPmiMyZKzNPB8xDllDXgqIug6cC3obzjusnsFCwoiVd429JkISVeY3Qy7GS3IZ_PEGhtCS8h-I3hdpB8soNq8Hri5SIkwLkFczsrzoDhyx3XW-46dpOKMxhu-45TWQMbMmEucprTYtLQbU5XhlG_NpWUtSuYyUs5bVoMv3vJtva6I_DFHg_afnl0Cobej2Jw3xuc8gxidu4ezdS0OAXMBMTjn6QOMfT5I01Aza9EtNZtMOsNeNwk01h1UhyvuKuNbv2FU9UQd4HpgIwgpLBB3jbOofo1eK2bapyAkOplZh87ZTx0vCTuUO2374BlDzJsjLdTu_UILfaJ_RufBu57Hy6OVGZfG-fkLMnmgMhs7uioZlcfo6R2sN-cURChM7NBmU3P-7sXL7tekdyd0P82AbkNkTU5NRKt4BEJ-dSHmkhRLDDaQ_zPUjgA0hTpGb-Hvul1AqmgKmtjOh1cFPNpWUrktsRkFrToaBZheWaiS5L1OGO-FSCkv-x4nvP4kOaKmfUW1J2vyFE23Vt9DwpzuH8ACpZlJANSM45n-N54UV1nQ8DEgq1oWUI7FU1iJ0D8FzfUgX2NWWYAAv8lhykIJWYZBxkKtGC7mbizxiqpTk5ymqafT_gNtM6iGEEJvnoaq5g08KEvP7Aa9G84e9BEFdqmUtAgfuy_CozJ8WIhHpThIT7ert8vP0srAVQB6kJBxUo4T479IQxjj25576IsnLtSAp-AFQ6ourIz33iNahAD1t-x19BbDDP8DpiGuPb4HWu3od9Yg99NJ5N8P4300natmAfw-nuzf_QU&enc=deflate

Steps to Reproduce

I'm using the eCharts example sandbox, playing around with the options. I can't seem to be able to get xAxis.nameTextStyle.width to work, funnily similar to https://github.com/apache/echarts/issues/16166, which just closed 3 weeks ago as stale haha.

Current Behavior

The height works, but the width seems to have no effect.

Expected Behavior

I would expect the width to change as I modify the width property.

Environment
- OS: Windows 11
- Browser: Chrome
- Framework: Unknown
Any additional comments?

No response

Dominant language
TypeScript
Stars
67.7k
Forks
19.9k
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from apache/echarts

All issues in apache/echarts

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.