Duration and easing
native
Control animation length and curve
Matrix status native. Verification render · strong. ChartKit option: ChartKitChartSpecV1.animation.duration, ChartKitChartSpecV1.animation.easing=spring.
animation.duration is milliseconds. 0 disables the fade. animation.easing is linear, ease-out, ease-in-out, or spring, and the curve is applied. Reduced motion and series over 2000 points skip it. ease and easeOut repair to ease-out (CK3066).
Source: chartkit:packages/core/src/interact.ts
ChartKit spec
Passed validate() during npm run matrix:refresh. The SVG is the server render.
{
"version": "1",
"type": "line",
"data": [
{
"quarter": "Q1",
"units": 40
},
{
"quarter": "Q2",
"units": 55
}
],
"encoding": {
"x": "quarter",
"y": "units"
},
"a11y": {
"alt": "Units rose in Q2."
},
"size": {
"width": 640,
"height": 260
},
"animation": {
"duration": 280,
"easing": "spring"
}
}Other libraries
Option names are the paths recorded in the matrix. A grep-only cell names the identifier that matched, not a render test. Markdown copy: animation.duration.md.
| Library | Status | Option | Verification | Source |
|---|---|---|---|---|
| Chart.js | native | grep: easing | grep · weak | chart.js/dist/types/index.d.ts:6 |
| Recharts | native | Line.animationDuration, Line.animationEasing | types · strong | recharts/types/cartesian/Line.d.ts:57 |
| Apache ECharts | native | animationDuration, animationEasing | types · strong | echarts/types/dist/shared.d.ts:7668 |
| Highcharts | native | chart.animation{duration, easing} | types · strong | highcharts/highcharts.d.ts:6275 |
| Plotly.js | native | layout.transition.duration, layout.transition.easing | types · strong | plot-schema.json#layout.layoutAttributes.transition.duration |
| Nivo | native | Line.motionConfig | types · strong | @nivo/line/dist/types/types.d.ts:189 |
| Victory | native | VictoryChart.animate{duration, easing} | types · strong | victory-core/lib/victory-util/common-props.d.ts:20 |
| visx | manual | Groupreact-spring config | mechanism · weak | @visx/group/lib/Group.d.ts:15 |
| ApexCharts | native | chart.animations.speed, chart.animations.easing | types · strong | apexcharts/types/apexcharts.d.ts:2327 |
| Tremor (npm) | native | LineChart.animationDuration | types · strong | @tremor/react/dist/index.d.ts:37 |
| Observable Plot | none | — | absence · absence | — |
| Vega-Lite | unknown | — | conflict · unknown | — |
| AG Charts | native | grep: duration | grep · weak | ag-charts-types/dist/types/src/chart/types.d.ts:40 |
| amCharts 5 | native | grep: duration | grep · weak | @amcharts/amcharts5/.internal/plugins/json/Serializer.d.ts:43 |
| Google Charts | native | grep: easing | grep · weak | @types/google.visualization/index.d.ts:520 |
| uPlot | none | — | absence · absence | — |
| TradingView Lightweight Charts | unknown | — | conflict · unknown | — |
| MUI X Charts | unknown | — | conflict · unknown | — |
| Mermaid (chart-ish diagrams only) | unknown | — | conflict · unknown | — |
| AntV G2 | native | grep: duration | grep · weak | @antv/g2/lib/animation/types.d.ts:2 |