3

We need to find or build from scratch a tool, that will collect users' feedback on graphs they look at. Scientists commenting some obtained distributions is a typical example. Generally speaking, this should be some kind of collective discussion layer for d3js

I guess, that this idea is not new, and I even saw kind of prototype a couple of years ago. Can anyone point to possible existing solutions or maybe frameworks that might be helpful?

Simplest use case - Bob sees d3js scatterplot and observes the strange outlier A on the upper left corner. He clicks on it and writes a comment - 'Was all conditions normal for this observation?'. When John enters the system and clicks on A, he can read the comment and reply smth like 'That's just my cat who ran over keyboard'.

This logic can have lots of extensions, so it's better to use an existing tool.

4

2 回答 2

3

如果评论必须在某个点上完成,您可以考虑将数据组织为json诸如

{
  "x":10, 
  "y":20, 
  "comments":[
               {
               "name":"Bob", 
               "content":"Was all conditions normal for this observation?",
               "replies":[
                           {
                            "name":"John",
                            "content":"That's just my cat who ran over keyboard",
                            "replies":null
                            }
                         ]
               },
               {
               "name":"indy", 
               "content":"ok for me",
               "replies":null
               }
             ]
}

这样"comments"就可以通过单击该点(比如说一个圆圈)来填充该部分,就像

d3.selectAll("circle") // data are already bind here providing the d.x and d.y values
  .on("click",funtion(d){
      d3.select("#node_where_I_want_the_comment_form")
        .append("form") //... the user sets name and content
})

然后设置d.comment=名称和内容。这并不简单,但我建议使用https://www.mongodb.org/来存储这种无模式数据。看:

http://docs.mongodb.org/ecosystem/use-cases/storing-comments/

于 2014-05-01T22:08:41.550 回答
2

对于那些感兴趣的人,我终于找到了我一直在寻找的东西 -

这是概念 - http://courses.cs.washington.edu/courses/cse512/14wi/lectures/CSE512-Collaboration.pdf 这里是原型 - sense.us

于 2014-05-12T13:09:51.747 回答