Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upDeveloper guide uses outdated d3 methods #199
Open
Labels
Comments
|
hi you're right, we must update the docs. RAWGraphs is now using d3.js 5.4.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I was following along with the guide for adding a chart: https://github.com/rawgraphs/raw/wiki/Adding-New-Charts
Using the exact code that is specified in the guide, and here: https://github.com/densitydesign/raw/blob/master/charts/chart.js
At runtime you see an undefined error.
It seems as though the latest version of "d3" no longer uses this
linear()method:var xScale = d3.scale.linear()...should be
var xScale = d3.scaleLinear()...Unless ofc there is a need to lock the version of d3 package?