Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stacked progress bar #644

Open
baszalmstra opened this issue May 13, 2024 · 2 comments
Open

Stacked progress bar #644

baszalmstra opened this issue May 13, 2024 · 2 comments

Comments

@baszalmstra
Copy link

Im wondering if there is an easy way to create a stacked progress bar where one bar shows multiple progress states. E.g:

GrN8f

I can perhaps implement something with the ProgressTracker but I couldnt figure out how to support "wide" elements.

@djc
Copy link
Member

djc commented May 13, 2024

I don't think we have support for something like this -- we'd usually use a MultiProgress with constituent progress bars that disappear when they complete, potentially with a "total" bar at the top or bottom.

The formatting code that takes care "wide" stuff lives here:

https://github.com/console-rs/indicatif/blob/main/src/style.rs#L226

@baszalmstra
Copy link
Author

The "wide" stuff seems to be setting up some WideElement which the ProgressTracker does not seem to have access too. Ill try something non-wide.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants