d3-book
d3-book copied to clipboard
Ch7_Code_09_time_scale.html
https://github.com/scotthmurray/d3-book/blob/4cbba7c74ebd29e6a07ec25150bf0ddb6e108112/chapter_07/09_time_scale.html#L36
The following line of code did not work for me: d3.csv("time_scale_data.csv", rowConverter, function(data) {
Instead, the following code worked for me what I figured out: d3.csv("time_scale_data.csv", rowConverter).then( function(data) {
Please check, Waqas
@waqasm86 Thanks! This is one of the things that changed with D3 v5. If you try the example code with D3 v4.5.0 (included in this repo), it should work as originally specified.
I will keep this issue open here and have tagged it, should I ever update the examples for a newer version of D3.