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/10/16 12:57:50 UTC

[GitHub] 100pah commented on a change in pull request #9210: fix #9182 Graph label.rotate is invalid

100pah commented on a change in pull request #9210: fix #9182 Graph    label.rotate is invalid
URL: https://github.com/apache/incubator-echarts/pull/9210#discussion_r225525322
 
 

 ##########
 File path: src/chart/graph/GraphView.js
 ##########
 @@ -200,7 +200,12 @@ export default echarts.extendChartView({
             && seriesModel.get('circular.rotateLabel');
         var cx = data.getLayout('cx');
         var cy = data.getLayout('cy');
+        var labelRotate = seriesModel.get('label.rotate') || 0;
         data.eachItemGraphicEl(function (el, idx) {
+            var itemRotate = itemModel.get('label.rotate');
+            if (itemRotate != undefined) {
 
 Review comment:
   In most cases, `undefined` and `null` are treat in the same way. So `some == null` is recommended.

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