I want to implement this chart, but I can not figure out how to use json, and not csv.

With d3 practically not familiar = (

The data model is as follows (for each object id, createdAt, numberOfWords fields):

{ { _id: someId, createdAt: 05/31/2016, numberOfWords: 0 < number < 1000 }, ..., ... } 
  • Should I change d3.csv to
    d3.json ?

  • Is it possible to transfer a variable to d3.json and not a file?

  • Will there be problems with colors?
  • How to change the function that is passed in rollup?
  • You are developers, you should know the language at least at the secondary level. Otherwise, how do you create variables and functions?)) - Vasily Barbashev
  • Yes, I thought so too, but since they ask, it probably makes sense. Let's hope he is) - Yanis Urbis
  • one
    @YanisUrbis, in view of the fact that we have both an English-speaking branch and a Russian-speaking branch, it makes sense to write in Russian in Russian. And yes, the majority here knows English (those who answer and generally know everything). And you, of course, no one bothers to create the same questions in both Russian and English. on different branches of the site. - Yuriy SPb

0