Ovilia 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_r225076491
##########
File path: src/chart/graph/GraphView.js
##########
@@ -200,6 +200,7 @@ export default echarts.extendChartView({
&& seriesModel.get('circular.rotateLabel');
var cx = data.getLayout('cx');
var cy = data.getLayout('cy');
+ var labelRotate = seriesModel.get('label.rotate') === undefined ? 0 :
seriesModel.get('label.rotate');
Review comment:
Please use `== undefined` to check `undefined` so that `null` will also
match the comparing.
Here, you'd better use `var labelRotate = seriesModel.get('label.rotate') ||
0` for simplification.
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]