You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@echarts.apache.org by GitBox <gi...@apache.org> on 2018/08/27 04:19:56 UTC

[GitHub] Ovilia closed pull request #8872: fix radiusAxis.axisLabel show problem because text is long--issues #8791

Ovilia closed pull request #8872: fix radiusAxis.axisLabel show problem because text is long--issues #8791
URL: https://github.com/apache/incubator-echarts/pull/8872
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/src/coord/axisTickLabelBuilder.js b/src/coord/axisTickLabelBuilder.js
index e1a849cb7..02ac2d0ae 100644
--- a/src/coord/axisTickLabelBuilder.js
+++ b/src/coord/axisTickLabelBuilder.js
@@ -238,6 +238,10 @@ export function calculateCategoryInterval(axis) {
     isNaN(dw) && (dw = Infinity);
     isNaN(dh) && (dh = Infinity);
     var interval = Math.max(0, Math.floor(Math.min(dw, dh)));
+    // add showAll attrbute in radiusAxis.axisLabel to show All Labels
+    if (axis.getLabelModel().get('showAll')) {
+        interval = 0;
+    }
 
     var cache = inner(axis.model);
     var lastAutoInterval = cache.lastAutoInterval;


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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


With regards,
Apache Git Services

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