Closed superliuxz closed 5 years ago
For the node link I am thinking to have Genres connected according to movies where two genres appear in the same time. The scale of Genre nodes could be how many times they have appeared. data could look something like this:
{
"nodes": [
{"id":"0", "name":"Action","value":"xxx", "group":1},
{"id":"1", "name":"Adventure","value":"xxx", "group":2},
...
],
"links":[
{"source":14, "target":0},
{"source":4, "target":4},
...
]
}
one of the example: https://bl.ocks.org/BTKY/6c282b65246f8f46bb55aadc322db709
For the node link I am thinking to have Genres connected according to movies where two genres appear in the same time. The scale of Genre nodes could be how many times they have appeared. data could look something like this:
{ "nodes": [ {"id":"0", "name":"Action","value":"xxx", "group":1}, {"id":"1", "name":"Adventure","value":"xxx", "group":2}, ... ], "links":[ {"source":14, "target":0}, {"source":4, "target":4}, ... ] }
Good thought, I really like it.
We can do that, but as a more advanced node link diagram though.
I have change the issue title to "basic node link diagram". Feel free to start working on the more advanced one if you want.
And do you want to hoop @soroushysfi into the discussion?
@soroushysfi what do you think about the advanced node link diagram @SiRumCz proposed? How much work is it on the front end?
For the node link I am thinking to have Genres connected according to movies where two genres appear in the same time. The scale of Genre nodes could be how many times they have appeared. data could look something like this:
{ "nodes": [ {"id":"0", "name":"Action","value":"xxx", "group":1}, {"id":"1", "name":"Adventure","value":"xxx", "group":2}, ... ], "links":[ {"source":14, "target":0}, {"source":4, "target":4}, ... ] }
one of the example: https://bl.ocks.org/BTKY/6c282b65246f8f46bb55aadc322db709
This would be perfect! in this case I don't need any data manipulation myself.
I will work on API part.
Reassigned, as @SiRumCz is working on it. And the API specification should be based on his implementation.
Yeah this is possible. Response is ok, even we can show 10 most rated movies in each genres. The scaling factor might be useful! I can also scale them in my code.
Originally posted by @soroushysfi in https://github.com/superliuxz/CSC501/issues/14#issuecomment-533916081