Skip to content

Commit

Permalink
Merge pull request apache#1559 from longFeiLi/patch-1
Browse files Browse the repository at this point in the history
Update gauge.js
  • Loading branch information
pissang committed May 19, 2015
2 parents 2ea08ff + e07b403 commit 01f5908
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/chart/gauge.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,11 @@ define(function (require) {
var series = this.series;
// 复用参数索引
this._paramsMap = {};
this.selectedMap = {};
for (var i = 0, l = series.length; i < l; i++) {
if (series[i].type === ecConfig.CHART_TYPE_GAUGE) {
//仪表图不用去legend 获取状态,默认这里给的true
this.selectedMap[series[i].name] = true;
series[i] = this.reformOption(series[i]);
this.legendHoverLink = series[i].legendHoverLink || this.legendHoverLink;
this._buildSingleGauge(i);
Expand Down Expand Up @@ -626,4 +629,4 @@ define(function (require) {
require('../chart').define('gauge', Gauge);

return Gauge;
});
});

0 comments on commit 01f5908

Please sign in to comment.