Skip to content

Commit

Permalink
refactor(treemap): replace Array.forEach with each
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeekoZhu committed Sep 27, 2022
1 parent e4fbb58 commit 204a04c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/chart/gauge/GaugeView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import SeriesData from '../../data/SeriesData';
import Sausage from '../../util/shape/sausage';
import {createSymbol} from '../../util/symbol';
import ZRImage from 'zrender/src/graphic/Image';
import {extend, isFunction, isString, isNumber} from 'zrender/src/core/util';
import { extend, isFunction, isString, isNumber, each } from 'zrender/src/core/util';
import {setCommonECData} from '../../util/innerStore';
import { normalizeArcAngles } from 'zrender/src/core/PathProxy';

Expand Down Expand Up @@ -161,7 +161,7 @@ class GaugeView extends ChartView {
}

sectors.reverse();
sectors.forEach(sector => group.add(sector));
each(sectors, sector => group.add(sector));

const getColor = function (percent: number) {
// Less than 0
Expand Down

0 comments on commit 204a04c

Please sign in to comment.