Last active
October 15, 2019 17:54
-
-
Save felipebaltazar/99c60124202ecc02221f5c81cae9ddec to your computer and use it in GitHub Desktop.
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
private void RefreshChartValues(float currentValue, float maxValue) | |
{ | |
if (currentValue >= maxValue) | |
dataSweepAngle = backgroundSweepAngle; | |
if (currentValue <= 0) | |
dataSweepAngle = 1; | |
var valuePercentage = (currentValue * 100f) / maxValue; | |
dataSweepAngle = (valuePercentage * backgroundSweepAngle) / 100f; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment