Comments (5)
Hi @netjs,
react-minimal-pie-chart
provides out of the box what you need except for the grey background segment.
Background segment is actually in the Readme's todo's, but I've never found a good reason for actually implementing it. PR's are welcome :).
BTW you can pretty easily implement the background segment on your application drawing a CSS or svg ring below the chart.
from react-minimal-pie-chart.
Hi @netjs,
react-minimal-pie-chart
provides out of the box what you need except for the grey background segment.Background segment is actually in the Readme's todo's, but I've never found a good reason for actually implementing it. PR's are welcome :).
BTW you can pretty easily implement the background segment on your application drawing a CSS or svg ring below the chart.
Thanks! what about start always from 12 oclock? because now its starts always different (depends of value) , for example if value: 10 || 25 || 50 || 75
from react-minimal-pie-chart.
If you need to animate a single element you might consider using and updating the reveal
property. See demo.
In your case startAngle
and totalValue
should do with their default values.
from react-minimal-pie-chart.
v4.2.0 ships with a new background
property. Your case should be covered by this example.
Cheers!
from react-minimal-pie-chart.
Hello :) Will try, thanks!
from react-minimal-pie-chart.
Related Issues (20)
- Not possible to render content inside chart on 8.0 HOT 1
- Dependency Dashboard
- Custom SVG label is rendered on same position HOT 3
- Side parts of Dognut chart are squashed HOT 1
- Not able to add multiline text with different format in central of pie/donut HOT 1
- Edges are getting cut on hover, when we render Doughnut chart HOT 1
- Expose the Typescript Types 🙏 HOT 7
- Hide tooltip HOT 3
- Feature OnMouseOver or specific classname when it is selected HOT 2
- Svg is filling all the space and truncate when becomes larger HOT 1
- How to style labels ? HOT 2
- Update React dev dependencies to v18 HOT 1
- Label font color not changing HOT 1
- Segment Border HOT 1
- Segment custom attributes for event handling HOT 1
- Are there any ways to set the same distance/padding between slices HOT 1
- Make labelPosition support segmentIndex callback function HOT 1
- PieChart component rendering error ExceptionsManager Error: Text strings must be rendered within a <Text> component. HOT 1
- Console warnings when using SSR HOT 5
- Implementation Question 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 react-minimal-pie-chart.