Comments (3)
I had this problem, but I saw that the pizza playground page initialized the script like this:
setTimeout(function () {
Pizza.init();
$(document).foundation();
$(window).trigger('resize');
}, 300);
Seems to work fine for me now. Would have saved me a lot of time if this was in the docs.
from pizza.
adding this code does work, however the chart show up cut off a bit. I still need to make multiple calls to Pizza.init() or $(window).trigger('resize'); to get the chart to grow enough so nothing's cut off.
from pizza.
Could that be because of other elements being initialised or animated before the charts? Try it on a empty page and see what you get. Also maybe try with a longer delay (maybe change 300 to 600ms?)
Although side note, I wouldn't recommend this library. After managing to get it working fine myself, I found that the axis of graphs aren't ever accurate. I switched to Chart.js - you'll find it's a nice alternative, it works fine on responsive websites.
from pizza.
Related Issues (20)
- provide roadmap HOT 2
- Labels not showing on IE11
- Assign ID's to pie elements
- SVG doesn't work inside an accordion HOT 1
- Some problems with values HOT 1
- Stroke Width HOT 1
- Problem installing... HOT 4
- Math.ceil instead of Math.round in pie.js results in wrong Percentages > 100% total HOT 2
- Ticks area too small to contain values HOT 1
- AngularJS not rendering charts HOT 1
- chart not visible until page resize HOT 1
- nothing appeared HOT 3
- Charts aren't rendering on latest version of Chrome HOT 1
- Animation for pie and line graph half-working on iPad.
- Line Graphs bug
- pizza pie chart not displaying with data-value that contains decimals HOT 2
- does not work if values are 100 & 0 HOT 2
- Update and animate pie chart on click event
- Foundation 6 not working properly with Pizza 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 pizza.