We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Just ran into an issue with enlarging the font-size and centering the percentage-text.
My standard css-tricks don't work here…
<Circle progress={currentStateInPercent} progressColor={strokeColor(currentStateInPercent)} bgColor='#cccccc' lineWidth='40' roundedStroke={true} showPercentageSymbol={false} textColor='#bfbfbf' textStyle={{ 'font-size': '120px' }} />
If you want to make this project perfect, then it would be cool to have some easy way to adjust this…
Thanks again for your hard work!
The text was updated successfully, but these errors were encountered:
@thebarty You need to use font instead of font-size. If you want to use just font-size you also need to provide a font-family as well.
font
font-size
font-family
Option A: { 'font': '120px Helvetica, Arial, sans-serif' } Option B: { 'font-size': '120px', 'font-family': 'sans-serif' }
{ 'font': '120px Helvetica, Arial, sans-serif' }
{ 'font-size': '120px', 'font-family': 'sans-serif' }
If your issue is more about large text not being centered, you need to increase the size property when increasing font-size:
size
<Circle size='200' textStyle={{ 'font-size': '120px' }}/>
Sorry, something went wrong.
I run into the same problem. Is there any update on this issue?
<Circle animate={false} responsive={false} size="170" lineWidth="15" progress={50} textStyle= {{ font: "bold 13rem Lato" }} roundedStroke={true} showPercentage={true} showPercentageSymbol={false} percentSpacing={0} />
No branches or pull requests
Just ran into an issue with enlarging the font-size and centering the percentage-text.
My standard css-tricks don't work here…
If you want to make this project perfect, then it would be cool to have some easy way to adjust this…
Thanks again for your hard work!
The text was updated successfully, but these errors were encountered: