iamshaunjp / data-ui-with-d3-firebase Goto Github PK
View Code? Open in Web Editor NEWAll course files for the Udemy course - Build Data UI's with d3.js & Firebase
All course files for the Udemy course - Build Data UI's with d3.js & Firebase
Hi, i had a problem on the project1 (lesson 51), the d3.pie() function is not recognised, I had to use:
d3.layout.pie() to make it.
Reference:
https://stackoverflow.com/questions/40358268/d3-pie-chart-uncaught-type-error-cannot-read-property-pie-of-undefined/40358547
For Project 1 lesson 47-67 (file: index.js)
There is error.textContent = "Please enter values before submitting!"
error message for warning usage.
A clearing up function error.textContent = ""
should be added as well.
form.addEventListener('submit',(e) => {
e.preventDefault();
if (insertname.value && cost.value) {
const item = {
name: insertname.value,
cost: parseInt(cost.value)
};
db.collection('expenses').add(item).then( res => {
insertname.value = "";
cost.value = "";
})
// should add this !!!
error.textContent = ""
} else {
error.textContent = "Please enter values before submitting!"
}
})
:)
Hi
I got this error from addEventLister. Not sure that is it because the newer version.
index.js:6 Uncaught TypeError: Cannot read property 'addEventListener' of null
data-ui-with-d3-firebase/index.js
Line 6 in 54a5900
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.