This repository has been archived by the owner on Aug 18, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(chart): Fix CircleChart resize issues
== DETAILS When a CircleChart is sized to anything other than 110x110 it's center is offset.
- Loading branch information
1 parent
8172e3c
commit cfe2660
Showing
2 changed files
with
18 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
Standard Radial Chart | ||
|
||
<CircleChart endPercentValue={'75k'} border={5} endPercent={0.45} backgroundOpacity={0.5} /> | ||
<CircleChart endPercentValue={'75k'} border={5} endPercent={0.45} backgroundOpacity={0.5} /> | ||
|
||
Smaller Radial Chart | ||
|
||
<div style={{fontSize:'10px', width:'75px'}}> | ||
<CircleChart endPercentValue={'75k'} border={5} radius={35} endPercent={0.25} backgroundOpacity={0.5} padding={2} /> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters