Comments (10)
It would also be nice that the baseline could be set to an arbitrary angle for burndown charts and other similar needs where we want to check if the line follows and ideal or expected trend.
from peity.
Adding a baseline to the line graph: You're not the first to ask for this sort of thing and I've been giving it some thought. I'd like to tackle it by exposing the information that the chart has about how the input numbers map to output x and y positions which would allow you to query this data and further decorate the chart.
Donut chart: This would be a different type of chart.
from peity.
Although they're named differently, the functionality is identical. The only difference being the donut may sustain more data, however in this case they would be too small to do so. Adding an optional hole would be an aesthetics gain.
Though a minor detail, it may produce a big difference.
from peity.
I've put together a JSFiddle of the piechart with a donut hole. I've also managed to integrate it
Would be fantastic if you could add this as an option into peity.
from peity.
Those donuts look great :D
I want to add donuts but I'd like to do it by drawing each sector of the ring instead of using a mask as it will enable some further features.
from peity.
I've done a little work on exposing the data to allow extending a chart with arbitrary baselines and the like. Here's an example of adding a line:
http://jsfiddle.net/benpickles/5947ffrz/
Have a play and see what you think. As you can see it's a manual process so unlikely to be used (!) but it's actually made the internal code cleaner and easier to fathom.
from peity.
I have a branch with donuts on, it's built on the changes that allowed baselines and the like:
https://github.com/benpickles/peity/tree/donut
Here's an example:
http://jsfiddle.net/benpickles/n78jzv1p/
from peity.
Donut charts are now included in version 3 of Peity which also exposes the mapping functions between values and x/y coordinates on the <svg>
allowing you to further decorate the charts.
from peity.
Brilliant stuff. Perhaps make note about the baseline on the homepage, so others can see it's do able.
from peity.
Thanks, will do. I've opened a work-in-progress pull-request that builds on this work: #45
from peity.
Related Issues (20)
- Change data-value to label
- data-value not working with "bar"
- Any react-native port?
- Required Two different color in Line chart HOT 1
- points calculated wrong in DataTables cell HOT 2
- can it have lables HOT 1
- Add ability to use CSS classes on SVG charts HOT 2
- jQuery version and Peity version always conflict HOT 2
- innerHTML to Span HOT 6
- Adding composer.json and submitting to packagist HOT 4
- Smooth animate pie chart on update HOT 2
- when using with bootstrap HOT 4
- This project should be renamed to piety HOT 1
- Charting fractional values HOT 1
- Add a mouseover to view data HOT 1
- Stacked bar HOT 1
- Any way to know if the numerator is greater than the denominator in a pie with delimiter /? HOT 2
- Semicircle donuts?
- show percentage in center donut HOT 1
- Further custom styling
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 peity.