blacksmithgu / obsidian-dataview

A data index and query language over Markdown files, for https://obsidian.md/.
https://blacksmithgu.github.io/obsidian-dataview/
MIT License
6.9k stars 407 forks source link

Progress Bar Function #1041

Open SlRvb opened 2 years ago

SlRvb commented 2 years ago

Is your feature request related to a problem? Please describe. Including a progress bar in the dataview queries is a bit of a hassle to write and not intuitive to those who don't know about html progress bar tags.

Describe the solution you'd like Some function like progress(value, max, bar/percent) to make it easier to include a progress bar or a percentage number.

Describe alternatives you've considered Using a query written like this is the only way to do it currently: "<progress value=" + episodes-watched + " max=" + episodes + "></progress>"

blacksmithgu commented 2 years ago

Definitely useful. Could also be nice to add a few other simple operators like "rating" for showing visual stars.

AB1908 commented 1 year ago

Aight, I'm ready to try this out. I've been thinking of something like progress_bar(field, total) but I'll need time to map out the ways this is used and what other args would be useful. Can anyone lend a hand?

xDovos commented 1 year ago

@AB1908 here are all the progress bars i have with pictures how the Tables look like rendered. i don't know how much help they will be but these are the ones i spread the most on discord if somebody asks about them. Progress bars.md image image image image