-
Notifications
You must be signed in to change notification settings - Fork 501
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
missing parenthesis in call to x.bandwidth() method #2
Comments
Similar issue in 3.13.1 |
Error: attribute height: Expected length, "NaN". |
/*
const MARGIN = { LEFT: 100, RIGHT: 10, TOP: 10, BOTTOM: 130 } const svg = d3.select("#chart-area").append("svg") const g = svg.append("g") // X label // Y label d3.csv("./data/revenues.json").then(function(data){ }) const x = d3.scaleBand() const y = d3.scaleLinear() const xAxisCall = d3.axisBottom(x) const yAxisCall = d3.axisLeft(y) g.selectAll("rect") |
In the file:
udemy-d3/05/5.07/js/main.js
Lines 112 and 117, there are missing a
()
in order to callx.bandwidth()
The text was updated successfully, but these errors were encountered: