odometer: Odometer

View source: R/odometer.R

odometerR Documentation

Odometer

Description

Create an odometer.

Usage

odometer(
  count,
  duration = 2500,
  format = "(,ddd).dd",
  theme = c("default", "car", "digital", "minimal", "plaza", "slot-machine",
    "train-station"),
  width = NULL,
  height = NULL,
  elementId = NULL
)

Arguments

count

Value to count up to.

duration

Duration of countup.

format

Change how digit groups are formatted, and how many digits are shown after the decimal point.

theme

An odometer theme, see https://github.hubspot.com/odometer/api/themes/

width, height

Dimensions.

elementId

Id of element holding the odometer.

Examples

odometer(12345)


JohnCoene/countup documentation built on Jan. 21, 2025, 12:46 p.m.