Features · animation

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.

Units rose in Q2.Units rose in Q2.40455055Q1Q2
{
  "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.

LibraryStatusOptionVerificationSource
Chart.jsnativegrep: easinggrep · weakchart.js/dist/types/index.d.ts:6
RechartsnativeLine.animationDuration, Line.animationEasingtypes · strongrecharts/types/cartesian/Line.d.ts:57
Apache EChartsnativeanimationDuration, animationEasingtypes · strongecharts/types/dist/shared.d.ts:7668
Highchartsnativechart.animation{duration, easing}types · stronghighcharts/highcharts.d.ts:6275
Plotly.jsnativelayout.transition.duration, layout.transition.easingtypes · strongplot-schema.json#layout.layoutAttributes.transition.duration
NivonativeLine.motionConfigtypes · strong@nivo/line/dist/types/types.d.ts:189
VictorynativeVictoryChart.animate{duration, easing}types · strongvictory-core/lib/victory-util/common-props.d.ts:20
visxmanualGroupreact-spring configmechanism · weak@visx/group/lib/Group.d.ts:15
ApexChartsnativechart.animations.speed, chart.animations.easingtypes · strongapexcharts/types/apexcharts.d.ts:2327
Tremor (npm)nativeLineChart.animationDurationtypes · strong@tremor/react/dist/index.d.ts:37
Observable Plotnone—absence · absence—
Vega-Liteunknown—conflict · unknown—
AG Chartsnativegrep: durationgrep · weakag-charts-types/dist/types/src/chart/types.d.ts:40
amCharts 5nativegrep: durationgrep · weak@amcharts/amcharts5/.internal/plugins/json/Serializer.d.ts:43
Google Chartsnativegrep: easinggrep · weak@types/google.visualization/index.d.ts:520
uPlotnone—absence · absence—
TradingView Lightweight Chartsunknown—conflict · unknown—
MUI X Chartsunknown—conflict · unknown—
Mermaid (chart-ish diagrams only)unknown—conflict · unknown—
AntV G2nativegrep: durationgrep · weak@antv/g2/lib/animation/types.d.ts:2