Browse Source

rm needle animation

merge-requests/1/merge
rozetko 4 years ago
parent
commit
16da0c4594
  1. 2
      dist/index.js
  2. 6
      src/index.ts

2
dist/index.js vendored

File diff suppressed because one or more lines are too long

6
src/index.ts

@ -143,10 +143,8 @@ export class ChartwerkGaugePod extends ChartwerkPod<GaugeTimeSerie, GaugeOptions
.range([0, 180])
.clamp(true);
this.chartContainer.selectAll('.needle').data([this.aggregatedValue])
.transition()
.ease(d3.easeElasticOut)
.duration(1000)
this.chartContainer.selectAll('.needle')
.data([this.aggregatedValue])
.attr('transform', (d: number) => {
return this._gaugeTransform + 'rotate(' + scale(d) + ')'
});

Loading…
Cancel
Save