import * as d3 from 'd3' import { ChartRegistry } from '../types' export const appendTransition = ( elms: d3.Selection, chart: ChartRegistry ): d3.Selection => { if (chart.animDurationMs && chart.animDurationMs > 0) return elms.transition().duration(chart.animDurationMs) as any return elms }