You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2020/08/11 08:54:47 UTC

[GitHub] [incubator-echarts] jimivdw opened a new issue #13106: visualMap labels misaligned

jimivdw opened a new issue #13106:
URL: https://github.com/apache/incubator-echarts/issues/13106


   ### Version
   4.8.0
   
   ### Steps to reproduce
   1. Go to https://echarts.apache.org/examples/en/editor.html?c=heatmap-large-piecewise
   2. Set `option.visualMap.textStyle` to `{fontWeight: "lighter"}`
   3. (optional, to emphasise the issue): set `option.textGap` to `-10`
   
   ### What is expected?
   Label is aligned in vertical middle of the item icon
   
   ### What is actually happening?
   Label is aligned higher (at top?)
   
   ![image](https://user-images.githubusercontent.com/703419/89877776-df03e680-dbc0-11ea-924a-b15491f6a9d9.png)
   vs.
   ![image](https://user-images.githubusercontent.com/703419/89877819-f2af4d00-dbc0-11ea-85b4-f8d8cd7cfa5c.png)
   
   ---
   The actual issue I'm having is not with using a different font weight, but rather with a different font family that happens to have a different default height. I did find out however that the issue also occurs with the "lighter" font weight of the default font.
   
   Setting a different value for `lineHeight` has no effect (could be that that is in fact the problem).
   
   I'd also be fine with having an option to explicitly set the padding of the text label (in the `textStyle`), like you can already do for the `legend`.
   
   <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
   <!-- This issue is in English. DO NOT REMOVE -->


----------------------------------------------------------------
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.

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] [incubator-echarts] Ovilia commented on issue #13106: visualMap labels misaligned

Posted by GitBox <gi...@apache.org>.
Ovilia commented on issue #13106:
URL: https://github.com/apache/incubator-echarts/issues/13106#issuecomment-672571296


   @jimivdw Would it help if we could provide something like offsetX and offsetY to adjust text position?


----------------------------------------------------------------
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.

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] [incubator-echarts] jimivdw commented on issue #13106: visualMap labels misaligned

Posted by GitBox <gi...@apache.org>.
jimivdw commented on issue #13106:
URL: https://github.com/apache/incubator-echarts/issues/13106#issuecomment-671853987


   Hi @Ovilia , thanks for your quick reply.
   
   Strange that you cannot reproduce it, I'm also on Mac myself (Mojave 10.14.6).
   
   Also, why is there nothing you can do about this? There should be some way to compensate for different baseline positions of different fonts. Maybe not automatically, but setting a different `lineHeight` or manually specifying some top padding should be able to do the trick imho.


----------------------------------------------------------------
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.

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] [incubator-echarts] jimivdw commented on issue #13106: visualMap labels misaligned

Posted by GitBox <gi...@apache.org>.
jimivdw commented on issue #13106:
URL: https://github.com/apache/incubator-echarts/issues/13106#issuecomment-672622751


   Yes, that would help 😊


----------------------------------------------------------------
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.

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] [incubator-echarts] echarts-bot[bot] commented on issue #13106: visualMap labels misaligned

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #13106:
URL: https://github.com/apache/incubator-echarts/issues/13106#issuecomment-671820865


   Hi! We've received your issue and please be patient to get responded. 🎉
   The average response time is expected to be within one day for weekdays.
   
   In the meanwhile, please make sure that **you have posted enough image to demo your request**. You may also check out the [API](http://echarts.apache.org/api.html) and [chart option](http://echarts.apache.org/option.html) to get the answer.
   
   If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org. Please attach the issue link if it's a technical questions.
   
   If you are interested in the project, you may also subscribe our [mail list](https://echarts.apache.org/en/maillist.html).
   
   Have a nice day! 🍵


----------------------------------------------------------------
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.

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] [incubator-echarts] Ovilia commented on issue #13106: visualMap labels misaligned

Posted by GitBox <gi...@apache.org>.
Ovilia commented on issue #13106:
URL: https://github.com/apache/incubator-echarts/issues/13106#issuecomment-671826671


   This is probably caused by font baseline position of different font weight on different platforms. For example, I cannot reproduce it on Mac.
   
   There's nothing really we can do about this. Perhaps you can try with another font.


----------------------------------------------------------------
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.

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