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 2022/10/08 09:20:33 UTC

[GitHub] [echarts] plainheart commented on a diff in pull request #16315: feat(axis): support tooltip for axis label.

plainheart commented on code in PR #16315:
URL: https://github.com/apache/echarts/pull/16315#discussion_r990616729


##########
src/component/axis/AxisBuilder.ts:
##########
@@ -810,6 +810,15 @@ function buildAxisLabel(
         });
         textEl.anid = 'label_' + tickValue;
 
+        graphic.setTooltipConfig({
+            el: textEl,
+            componentModel: axisModel,
+            itemName: formattedLabel,
+            formatterParamsExtra: {

Review Comment:
   I'm thinking if there is some way to allow the developer to detect if the label is overflowed and ellipsised to decide whether to show the tooltip and the content tp show.



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