vue-bulma / peity Goto Github PK
View Code? Open in Web Editor NEWA Vue version of an excellent peity library for beautiful mini <svg> graphs.
License: MIT License
A Vue version of an excellent peity library for beautiful mini <svg> graphs.
License: MIT License
The value of the pie chart updates properly but the color does not. Any way to force a redraw?
data () {
return {
data: '100/100',
fillColor: 'green'
}
},
mounted() {
setTimeout(() => {
this.data = '50/100'
this.fillColor = 'red'
}, 1000);
},
I have Peity hosted inside another component that gets filtered based on data. if it is filtered and then unhidden, the chart will be duplicated since the dom is recreated.
Current fix is to empty the innerHtml of the container:
mounted() {
this.$el.parentNode.innerHtml = "";
this.chart = new Peity(this.$el, this.type, this.data, this.options)
this.chart.draw()
},
Hi, I'm trying to build the lib but I'm getting this error:
> yarn build
yarn build v0.16.1
$ webpack -p --config build/webpack.min.conf.js
Hash: e2415a0aae97a1e511bb
Version: webpack 1.14.0
Time: 1823ms
Asset Size Chunks Chunk Names
vue-peity.min.js 12.3 kB 0 [emitted] main
+ 7 hidden modules
ERROR in vue-peity.min.js from UglifyJs
SyntaxError: Unexpected token punc «(», expected punc «:» [./src/lib/bar.js:14,0]
ERROR in vue-peity.min.js from UglifyJs
SyntaxError: Unexpected token punc «(», expected punc «:» [./src/lib/bar.js:14,0]
The same occurs running the build with -> npm run-script build
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.