Skip to content

Commit

Permalink
axisLine.show option implemented for Gauge
Browse files Browse the repository at this point in the history
As described in  apache#9194 - echarts ignores axisLine.show option. Support for this option added by this commit.
  • Loading branch information
YuriGor committed Oct 10, 2018
1 parent 0f2445d commit e09fae6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/chart/gauge/GaugeView.js
Expand Up @@ -85,8 +85,9 @@ var GaugeView = ChartView.extend({

var prevEndAngle = startAngle;
var axisLineWidth = lineStyleModel.get('width');

for (var i = 0; i < colorList.length; i++) {
var showAxis = axisLineModel.get("show");

for (var i = 0;showAxis && i < colorList.length; i++) {
// Clamp
var percent = Math.min(Math.max(colorList[i][0], 0), 1);
var endAngle = startAngle + angleRangeSpan * percent;
Expand Down Expand Up @@ -424,4 +425,4 @@ var GaugeView = ChartView.extend({
}
});

export default GaugeView;
export default GaugeView;

0 comments on commit e09fae6

Please sign in to comment.