提交 39a47bed 编写于 作者: P pah100

polar enable specified by polarId (but not only polarIndex)

上级 d7ba7f78
...@@ -32,9 +32,8 @@ define(function (require) { ...@@ -32,9 +32,8 @@ define(function (require) {
return; return;
} }
var polarModel = ecModel.getComponent('polar', angleAxisModel.get('polarIndex'));
var angleAxis = angleAxisModel.axis; var angleAxis = angleAxisModel.axis;
var polar = polarModel.coordinateSystem; var polar = angleAxis.polar;
var radiusExtent = polar.getRadiusAxis().getExtent(); var radiusExtent = polar.getRadiusAxis().getExtent();
var ticksAngles = angleAxis.getTicksCoords(); var ticksAngles = angleAxis.getTicksCoords();
......
...@@ -25,10 +25,9 @@ define(function (require) { ...@@ -25,10 +25,9 @@ define(function (require) {
if (!radiusAxisModel.get('show')) { if (!radiusAxisModel.get('show')) {
return; return;
} }
var polarModel = ecModel.getComponent('polar', radiusAxisModel.get('polarIndex'));
var angleAxis = polarModel.coordinateSystem.getAngleAxis();
var radiusAxis = radiusAxisModel.axis; var radiusAxis = radiusAxisModel.axis;
var polar = polarModel.coordinateSystem; var polar = radiusAxis.polar;
var angleAxis = polar.getAngleAxis();
var ticksCoords = radiusAxis.getTicksCoords(); var ticksCoords = radiusAxis.getTicksCoords();
var axisAngle = angleAxis.getExtent()[0]; var axisAngle = angleAxis.getExtent()[0];
var radiusExtent = radiusAxis.getExtent(); var radiusExtent = radiusAxis.getExtent();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册