d3-book icon indicating copy to clipboard operation
d3-book copied to clipboard

Ch7_Code_09_time_scale.html

Open waqasm86 opened this issue 4 years ago • 1 comments

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 avatar Mar 04 '20 22:03 waqasm86

@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.

scotthmurray avatar Apr 12 '20 20:04 scotthmurray