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

Props for semi-circle progressbar #46

Closed
var-bp opened this issue Feb 12, 2018 · 4 comments
Closed

Props for semi-circle progressbar #46

var-bp opened this issue Feb 12, 2018 · 4 comments

Comments

@var-bp
Copy link

var-bp commented Feb 12, 2018

Hi, is there any props to achieve something like this?
semi-circle

@Offirmo
Copy link

Offirmo commented Feb 27, 2018

By combining rotation #38 + multiplying the percentage by ~0.6 you should be able to achieve this.

@kevinsqi
Copy link
Owner

hmm, yeah you can certainly rotate the progressbar, but I don't think you can actually scale the whole bar just by multiplying by a fraction, because that would just scale the colored path, not the full gray trail - you'd need some other trickery to achieve the partial arc. Also, there's no built-in way to implement the white separators between each 10% segment. This use case is complex enough that you may want to find an alternative, or perhaps look at the source and roll your own. Sorry I can't be of more help!

@kevinsqi
Copy link
Owner

Just as a followup - adding the white separators is possible by overlaying content, and I have a demo up at https://codesandbox.io/s/ov22pywr19.

Reducing the progressbar to a semi-circle is still not implemented yet, but I may get to it as part of PR #49.

@kevinsqi
Copy link
Owner

kevinsqi commented May 4, 2019

@var-bp @Offirmo

Making the progressbar only arc ~60% of the full diameter is now possible in v1.2.1 with props.circleRatio! See more details here: #49 (comment)

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

3 participants