Comments (4)
Hi @nbhkph
I left a small dot there at 0 Progress because that is actually a value as well. That was the design decision I made at those times. Maybe it wasn't the best decision.
Anyway you can fix this with noData
state prop like follows:
<vue-ellipse-progress :propgress="progress" :no-data="progress === 0" />
The progress line will disappear. If it helps, feel free to close the Issue, otherwise let as discuss a better solution.
from vue-ellipse-progress.
Thanks for answering!
it works, but when data is set to false it hides the whole design any solution for that?
from vue-ellipse-progress.
Yes, this is the obvious downside of the proposed solution. I'm already thinking about how to make the component behavior more flexible in different states, but that's a question for future releases.
Let me explain you, why i left this small dot for 0 progress. During the development i have created many different plain circles, e.g. with transparent empty lines. And with 0 progress simply none of the lines would be displayed. I found this irritating and left this point there to indicate the presence of the circle. So, this is more the question on the philosophy, not how to fix this.
But, i have another dirty workaround for you. You could change the line type depending on the progress like this: :line="progress === 0 ? 'butt' : 'round'"
. This would hide the progress line and does not brake any styles, but have downsides too.
Also you could change the styles property stroke-dashoffset
of the circle.ep-circle-progress
element manually. You just need to add 0.5
to the current value to hide the line completely. But yeah, could be a little bit tricky.
It's anything i can suggest you for now, without touching the code base. Let me know, if you have further questions or need help!
from vue-ellipse-progress.
Okay thanks for the explanation!
from vue-ellipse-progress.
Related Issues (20)
- this project cant be used with typescript HOT 2
- How can I go around and then go around again
- What event triggered it? HOT 1
- Gradient not applying correctly HOT 2
- ssr aware HOT 4
- when I use it in iphone6s with ios9οΌit Abnormal display HOT 4
- I guess I cant installed it tell me why and pls help me fixing HOT 6
- Can i define `:progress = (value)` HOT 3
- Typescript support HOT 2
- Create non-pluggin version of the library HOT 2
- $ref is undefined when 'data' is specified on [email protected] HOT 1
- Usage with vue3 + composition API HOT 2
- Trying to display legend on a multiple line ("data" driven chart) HOT 2
- Can't import on Vue 3 HOT 3
- confused on using slot property on vue3 HOT 3
- Responsive sizing? HOT 6
- legendClass example HOT 2
- Animation Triggers Twice upon Mounting in Safari and Ionic App HOT 3
- Remove unused space for half circle HOT 1
- Add circle slot HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-ellipse-progress.