Chronobars

by Daniel Hidefjäll
5
4
3
2
1
Score: 50/100

Description

Category: Data Visualization

The Chronobars plugin renders time progress bars from chrono-bar code blocks using either HH:MM values or full datetimes. It supports ranges that cross midnight, so overnight spans continue to calculate correctly instead of resetting at midnight. Each bar can show a custom name, percentage values, date and time labels and remaining time with selectable units for years, months, days, hours, minutes or seconds. The remaining line can sit below the percentage or replace it entirely, and past ranges are marked as Ended. The plugin also exposes CSS classes for the container, bar, fill and text so the display can be restyled with custom snippets. Second based remaining time updates every second.

Reviews

No reviews yet.

Stats

2
stars
159
downloads
0
forks
8
days
5
days
5
days
0
total PRs
0
open PRs
0
closed PRs
0
merged PRs
1
total issues
0
open issues
1
closed issues
2
commits

Latest Version

6 days ago

Changelog

Added remainingTimeFormat as requested in issue 1.

New code block options:

  • remainingTimeFormat: pick units with y M d h m s (M is months). Example: d h m s or y M d h m s. Only listed units show.
  • remaining: true shorthand for d h m s.
  • remainingPosition: below (default) or replace to hide the percentage.
  • remainingLabel: optional prefix.
  • Live update each second when s is included, else every 30 seconds. Past events show Ended.

Also updated README install section now that the plugin is published.

README file from

Github

Chronobars

Time Progress bars for Obsidian

ChronoBars Example

Features

  • 🕒 Flexible time formats - Supports both simple time (HH:MM) and full datetime (YYYY-MM-DD HH:MM)
  • 🌙 Overnight support - Correctly handles ranges crossing midnight
  • 🎨 Customizable display - Show/hide percentage, dates, and add custom names

Installation

  1. Available via the Obsidian Community Plugins tab: search for "Chronobars"
  2. Or install manually:
    • Download the latest release
    • Extract to your vault's plugins folder: .obsidian/plugins/chrono-bars

Usage

Create a code block with the chrono-bar settings:

```chrono-bar
start: 09:00
end: 17:00
name: Workday
percentage: true
dates: true
```

Supported Parameters

Parameter Description Default Examples
start Start time (required) - 09:00, 2023-12-31 23:30
end End time (required) - 17:00, 2024-01-01 02:00
name Custom title for the bar None name: Workday
percentage Show/hide percentage true percentage: false
dates Show/hide date/time labels false dates: true
remainingTimeFormat Show remaining time, letters pick units: y M d h m s (M is months) off d h m s, y M d h m s
remaining Shorthand for remaining time with default d h m s false remaining: true
remainingPosition below shows under percent, replace hides percent below remainingPosition: replace
remainingLabel Optional prefix before remaining time None remainingLabel: Left

Time Format Examples

  • Simple time: 14:30
  • Full datetime: 2023-12-31 23:30
  • Overnight range: 23:30 to 03:00 (automatically handles midnight crossing)

Remaining time format

Set remainingTimeFormat to pick which units to show. Use y years, M months, d days, h hours, m minutes, s seconds. Only listed units are shown, leading zeros are hidden, and the smallest unit is always kept. When s is included the line updates every second, otherwise every 30 seconds. Past events show Ended.

```chrono-bar
start: 2025-01-01 00:00
end: 2026-01-01 00:00
name: New Year Countdown
remainingTimeFormat: d h m s
```

Use remainingPosition: replace to hide the percentage and show only remaining time.

Examples

```chrono-bar
start: 2025-01-01 00:00
end: 2026-01-01 00:00
name: New Year Countdown
dates: true
```

Becomes:

New Year Example

Styling

You can customize the appearance by adding these CSS snippets to your vault:

.chrono-bar-container {
  /\* Container styles */
}

.chrono-bar {
  /\* Background bar styles */
  height: 20px;
}

.chrono-bar-fill {
  /\* Progress fill styles */
  background-color: var(--interactive-accent);
}

.chrono-bar-text {
  /\* Text styles */
}

Development

Want to contribute? Here's how to set up the development environment:

  1. Clone this repository

  2. npm install

  3. npm run dev to start compilation in watch mode

Support Found a bug or have a feature request? Please open an issue.

Similar Plugins

info
• Similar plugins are suggested based on the common tags between the plugins.
Advanced Progress Bars
a year ago by cactuzhead
Obsidian plugin to create custom progress bars
Beautitab
3 years ago by Andrew McGivery
A plugin for Obsidian.MD that creates a customizable new tab view with beautiful backgrounds, quotes, search, and more.
Better Order List
3 years ago by Boninall
Callout Integrator
4 years ago by
A plugin for Obsidian to allow the integration of long blocks of text into callouts.
Canvas Daily Note
3 years ago by Andrew McGivery
A plugin for Obsidian that allows you to add a daily note node to the canvas that will always show todays note.
Checklist Progress
2 years ago by acidghost
Plugin to automatically fill progress (as fraction or percentage) of check-lists
Christmas
2 years ago by MatseVH
Commander
3 months ago by jsmorabito
Commander - Obsidian Plugin | Add Commands to every part of Obsidian's user interface
Countdown To
a year ago by Gui Cattani
A countdown/progress Obsidian widget using progressbar.js
Custom Classes
4 years ago by Lila Rest
A minimal Obsidian plugin that allows you to add your own HTML classes to chosen Markdown elements directly from your notes.
Custom new file name
2 years ago by homu-konamilk
Custom Slides
a year ago by David V. Kimball
Customize Obsidian's Slides core plugin's navigation, styles, and behavior.
Custom Theme Studio
a year ago by @gapmiss
An Obsidian.md plugin to create and tweak custom themes with live CSS editing, element styling, and instant previews. All without leaving Obsidian.
Datetime Language Changer
3 years ago by Zetab_S
This is a Obsidian plugin that allows you to customize the language used for datetime formatting by changing moment.js's locale.
Dragger
3 months ago by ariestar
An Obsidian plugin for dragging and rearranging any block.
Editing Toolbar
4 years ago by Cuman
An obsidian toolbar plugin, modified from the Cmenu plugin
Emoji Magic
4 years ago by simplgy
Makes it easier to add emojis using an improved keyword search
Keep the Rhythm
2 years ago by Ezben
An Obsidian plugin to visualize how much you write with a heatmap.
Lark Style CountDown Timer
9 months ago by Zhaoyang Yu
MantouAI
3 years ago by Morino Pan
MantouAI—— 让Obsidian变身智能助手
Metadata Icon
3 years ago by Benature
change metadata entry icon
My SVGs
8 months ago by Omar Badawy
An Obsidian plugin that Registers your own SVGs into Obsidian's global icon library for use with other plugins or however you want.
Natural Language Syntax Highlighting
3 years ago by artisticat
Highlight adjectives, nouns, adverbs, verbs, and conjunctions in Obsidian.md
New 3D Graph
a year ago by Aryan Gupta
Visualize your vault in 3D with a powerful, highly customizable, and filterable graph.
Pixel Pets
a year ago by Lucas Jin
Adds cute pixel pets to Obsidian.
Plugin Groups
4 years ago by Mocca101
A plugin that allows you to easily group and manage your other plugins in Obsidian.
ProgressBar
4 years ago by Wei Zhang
Code block plugin for Obsidian generating a progress bar
Root Folder Context Menu
3 years ago by mnaoumov
Obsidian Plugin that enables context menu for vault root folder
Set View Mode per Note
3 years ago by Alex Davies
Use YAML frontmatter to specify a view mode per note.
Simple Banner
a year ago by Sandro Ducceschi
Visually enhance your Obsidian notes with a customizable banner. Supports icons and time/date display.
Simple Columns
a year ago by Josie
An Obsidian plugin that lets you create easily resizable and customizable columns in your notes.
Solve
3 years ago by Liam Riddell
An unobtrusive Obsidian plugin that quietly processes equations and patterns in real time
Tag Formatter
3 years ago by snsvrno
Configurable Obsidian plugin that hides parent tags.
Text Wrapper
4 years ago by smx0
Plugin for Obsidian
tidit
2 years ago by codingthings.com
tidit is an Obsidian - https://obsidian.md - plugin that adds timestamps to your document as you type — when you want it, how you want it, where you want it.
Unicode Search
4 years ago by BambusControl
Simple Unicode character search for Obsidian.md
Weekly Goal Tracker
2 years ago by George Gorman
Xove Dashboard
20 days ago by ty
Obsidian 个人工作台插件:把任务管理 / 项目管理 / 灵感收集 / 笔记统计 收进一个首页,数据全留在本地的。