We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e324189 commit 252eed0Copy full SHA for 252eed0
src/components/vue-ui-sparkbar.vue
@@ -171,12 +171,14 @@ function ratioToMax(val) {
171
}
172
173
function ratioTo(bar) {
174
-
175
if (FINAL_CONFIG.value.style.layout.independant) {
176
if (bar.target) {
177
return bar.value / bar.target;
178
179
if (FINAL_CONFIG.value.style.layout.percentage) {
+ if (bar.value > 100) {
180
+ return 1;
181
+ }
182
return bar.value / 100;
183
} else if(FINAL_CONFIG.value.style.layout.target === 0) {
184
return 1;
0 commit comments