I have been wandering from pages to pages for at least two days, wanting to understand what was I doing wrong for my init function in d3.json(url, init) not to transform my data ?
What programming concept am I missing ?
{
let dataset1 = [];
await d3.json(url,normalize).then(processJSON); // the await to make sure everything is loaded before we proceed
function processJSON(data){
dataset1 = data; // Why is data not normalized ?
}
return dataset1
}
After more that two days searching for what I guess is an evidence for you, I have a meta-question.
What strategy do you employ to find your answers. Could I be more efficient in learning ?or Iām asking myself too much⦠juste needing more time. As for now:
- I take time to read the docs even when I canāt get much from it because itās too technical for me, e.g the fetch.spec⦠Still I opened the fetch page a handful of times in the last months and read some more each time.
- I admit sometime using a text to speech reader because tech spec style goes well with a robotic voice and itās not as enjoyable as a Nabokov.
- I search the Observable notebooks for code looking like mine, here:
d3.fetch(data, init).then(... - I try stuff, explore, test⦠but start wondering if unstructured learning is what I need.
- I sleep thinking of my problem and how to solve it
- I wake up thinking that I have that problem to solve.
- I can take online-course or follow tutorials to get started. Did most of Udacity d3 MOOC
- I read and reproduce examples given in some books like Interactive Data Visualization for the Web*
(edit : - and I formulate questions, it helps a lot just to know that it could be answered. )
What I did not do is attend workshops and have face to face discussion with people using d3js, and I feel Iām missing a lot.
Thank you
). I would also add ātaking breaks to relax and do other thingsā as in my experience itās important to let the subconscious mind do its work. Also Iāve found that often things that confuse me have been discussed elsewhere on the web e.g. StackOverflow or peopleās blogs, so I also make an effort to do a thorough web search for sources outside official docs.