This plugin adds a countdown timer onto the last price line of LWC. It requires LWC version 5.0.9 or greater.
Features (3):
- Last price line and countdown timer:
- Customise the line (style, thickness, colour) and label (background colour, text colour, price formatting)
- Customise the countdown timer (e.g. to display
1m 12s,01:12, etc)
- Add a list of countdown timers to the chart (any timeframes)
- Display additional horizontal lines relative to the last price (by fixed points or percentages)
npm install lwc-plugin-countdown-to-closeimport { CountdownToClose, CountdownToCloseOptions, TimeToClose } from 'lwc-plugin-countdown-to-close';Showing all 3 features (last price line with countdown timer, list of other countdown timers in the top-right, and blue lines 40 points away from the last price):

npm install
npm run devVisit localhost:5173 in the browser.
npm run compileThis will:
- Compile TypeScript to JavaScript
- Bundle the plugin for both ES modules and UMD
- Generate TypeScript type definitions
- Output everything to the
dist/folder