Skip to content
Advertisement

d3.scaleBand not a function

Shouldn’t it work with this library? <script src="https://d3js.org/d3.v4.js"> I’ve tried all the libraries that I can find about this and none of them get rid of this error. Any help would be great.

JavaScript

Advertisement

Answer

Instead of

JavaScript

Change .padding to .paddingInner like such

JavaScript

Thanks to Darren Sweeney for the answer.

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement