You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "BangKk (via GitHub)" <gi...@apache.org> on 2023/03/20 03:37:43 UTC

[GitHub] [echarts] BangKk opened a new issue, #18401: [Bug] xAxis rich label render problem

BangKk opened a new issue, #18401:
URL: https://github.com/apache/echarts/issues/18401

   ### Version
   
   5.4.1
   
   ### Link to Minimal Reproduction
   
   https://echarts.apache.org/examples/zh/editor.html?c=line-simple&code=G4QwTgBApsUHYBcCSBbEBzKEC8EAGAJiAiAFwCWamA9AM7DoDUAHigDYDcARiLVAGwAWADQAFACIBOQVwDqAd3QEUANQCeAYwBMbYFwBWABnIBZAMqD5ScgCE2XFADlgALQDibAK4uAXsZUqAEpuADIAKujkoj6CANKiABKOWi5qNgDMILKBhiDixiZhAFLyUADCSOggbioADi5aABaGomZIzCZwNoLWNlpZKukAiijSrUhW4gCC6IWVc-RICS5sGnCOtVxagpJI-gCinuaVUG4AjLRccCa7KM0ECVP8IWqS6QTpGp4EPiaeXOkinAQj4JiZpsANOkXHBejJZMxPBofLUZB5PCA_OQQAkchpxAB7YAhd7vNQAVnSJgpkJQGmAhQA1uSAPJmaRcdEgNRIRhlcgzJBlKYADgIHkMnIAqowTPpAnAXOQzoYAJqyABmbFqSA1jM8AHZDCKSYFauLmGxROgCeghTNRG4NFVZENdp47ggoCgCATyIZmL0fA8iqAtFLbuS9CgpYskoYNKMwC4zGdMtlcvlTG10C52Jcsw5JN4c3m2Jcymc1AQEVazEU2MoVP8tIFGXs4va7cLu6LUjZ6lnyfwoIFyeTPJ5ybVyCzyQbPKEoCANLPZPxap5ZFxgJ5yI0AI4s2SMxqMMwG4A5kONK6OFAAooIVpFBMoABiSK0zEa4qlBPCIZfgseRwSmUDploIVDDORxxCQI5pgg8DYjaPkBV7TCuyQcRmFhDxGVaEI4GAIork8QQhgQQpIiWQI1HVckfDzSQ1C4MJjBvO9aFVAANQI2FicQhnkEJ9HAsDQLKRQ5VVUTxOQqTGSiG0sJ7bD1J7R1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WG4Fwmw3DyGKo4NwgR9A6
 yGF5QZwzOTyAQGsFQtAXAcXIEWTw3p1BcB5IwUQZRJDyD4oEAkg0xqjSudFCaqh9AEFmoOYw45GC1HJFsRYthBDjCsLYckPzejphyHkAo2jBmNDYFkX0BAswLFEPoeQtIVD3PEJ2aKlz0X2hNFoDQ6ERqYpuSEHFeKMWCnEIi3waL8WiiJbiyK41aV8gRZCaEcBrTYGwHgAAUFygktQEDkAJHAHAEAADeXKIAQGYB9cgtBSBiolZKiACA1C1CgPKgA5BoYgUAbRgDUBq4QirJVEBIPKgA2hqkwQrDUQA1WEbZtqNWyCgAQJ1YRGieCde-MA5AnVmGIP6zwcANUAF0jVKogCAZgsqQggC4FANg8rxWRslRoAkbACRgE1QAYn4Pmw1xqlXkEQFAMAoAk0QEMBG1NGos1oAQF6bNEANTBo0AKoVEAAAUFbtkAEoFWpqVWAKACBPBgGFXgAAJKK3tUAAC-oqYDwAQGEDAAAfedeAOBFslfOmtkbfUaEaMm3dSrl2IDXegU9Q7I08A0IydAYACTBoeRmrNyaICUAwOq6AsBECoB_cICA8hyAEAQCeiAZwtDAcaFAcg6BGgIHldBiA86z17rPehyN2G0M1sSTGuVg6lUqrVZqudGrFX7sVXwX1UAiPmqLSm1NpqyAQHNWcck1aIBaHSNxrQ2xgNaDOCKYDaZyRicEAaIT_BDDhrPaR39Gq2AlqgJRnDirQ1cvnRwIAA
   
   ### Steps to Reproduce
   
   See the render result.
   
   ### Current Behavior
   
   Only first axis label item render the `eventTag` svg,and all the axis label items rendered `eventTag` svg after changed the chart width.
   
   ### Expected Behavior
   
   render svg  image in every label item, or not render because the rich part `eventTag` width is zero.
   
   ### Environment
   
   ```markdown
   - OS: macOS Catalina 10.15.6
   - Browser: 111.0.5563.64 (Official Build) (x86_64)
   ```
   
   
   ### Any additional comments?
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [echarts] taurz commented on issue #18401: [Bug] xAxis rich label render problem

Posted by "taurz (via GitHub)" <gi...@apache.org>.
taurz commented on issue #18401:
URL: https://github.com/apache/echarts/issues/18401#issuecomment-1478805594

   rich label needs an explict width because there's no text defined in `${value}{eventTag|}`,your example would work as below
   `rich: {
           eventTag: {
             width: 12,
             backgroundColor: { image: eventImage, width: 12, height: 12 }
           }
         }`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [echarts] BangKk commented on issue #18401: [Bug] xAxis rich label render problem

Posted by "BangKk (via GitHub)" <gi...@apache.org>.
BangKk commented on issue #18401:
URL: https://github.com/apache/echarts/issues/18401#issuecomment-1479001885

   yeah, it works. Thank you!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [echarts] BangKk closed issue #18401: [Bug] xAxis rich label render problem

Posted by "BangKk (via GitHub)" <gi...@apache.org>.
BangKk closed issue #18401: [Bug] xAxis rich label render problem
URL: https://github.com/apache/echarts/issues/18401


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org