-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Chapter 5 HANDLING DATA-LOADING ERRORS #46
Comments
@zlw8844 Thanks! Which specific example are you referring to? It would be helpful to have the filename (like |
I am reading the online version, and there is no page number. It is in chapter 5, section 'HANDLING DATA-LOADING ERRORS'. A snapshot of the code is as follows. I need to use an array for dataset, and push new data into it in order to save all input data into dataset. I guess it was caused by the version of D3 used? |
Thanks. Where are you finding the online version? Please share a URL. I suspect you may be referencing an older version of the text. |
I read the 2nd edition through O'reilly. The link is as follows:
https://learning.oreilly.com/library/view/interactive-data-visualization/9781491921296/
Regards,
Lingwei "Eric" Zhan
…On Thu, Sep 3, 2020 at 4:22 PM Scott Murray ***@***.***> wrote:
Thanks. Where are you finding the online version? Please share a URL.
I suspect you may be referencing an older version of the text.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#46 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEW5R6VKBSIQD3RU24JNVT3SD73KDANCNFSM4QSAWF7A>
.
|
Ah thanks. Yes, that was my silly example. You don't have to push data into the array the way I did, but you do have to use an array. Which version of D3 are you using with the example code? (The examples are only guaranteed with work with D3 v4.5.0, as included in this repo. If you are using v5.0 or newer, then yes, the way the CSV method works has changed, so that probably is breaking here.) |
I look forward to seeing the updates on your new book. |
Regarding global variable dataset, I found I had to define var dataset = [], and use dataset.push(data). If I did the same as the book, the dataset can only have the last element in the imported csv file.
The text was updated successfully, but these errors were encountered: