Skip to content

Latest commit

 

History

History
558 lines (503 loc) · 12 KB

README.md

File metadata and controls

558 lines (503 loc) · 12 KB

Nuwa

Start for the prototype system

npm i
npm run start
  • Data Selection Alt text

  • Record Alt text

  • Pattern Alt text

  • Encoding Alt text

Description

The specification of Nuwa consists of four major primitives data, entity, change, and encoding, which are abstracted from concepts of typical graph models.

image-20210401050932284

Gallery

image-20210401051740051

{
    "data": "graph.json",
    "entity": "graph",
    "change": ["unchanged", "appeared"],
    "encoding": {
        "graphLayout": "force-directed",
        "timeLayout": "merged"
    }
}

image-20210401051934186

{
    "data": "graph.json",
    "entity": "graph",
    "change": ["unchanged", "appeared"],
    "encoding": {
        "graphLayout": "force-directed",
        "timeLayout": {
            "x": 3,
            "y": 3
        }
    }
}

image-20210401052040508

{
    "data": "graph.json",
    "entity": "graph",
    "change": "all",
    "encoding": {
        "graphLayout": "grid",
        "timeLayout": "juxtaposed",
        "color": "change"
    }
}

image-20210401052213081

{
    "data": "graph.json",
    "entity": "graph",
    "change": ["unchanged", "appeared"],
    "encoding": {
        "graphLayout": "matrix",
        "timeLayout": "merged"
    }
}

image-20210401052402315

{
    "data": "graph.json",
    "entity": "graph",
    "change": ["unchanged", "appeared"],
    "encoding": {
        "graphLayout": "square-matrix",
        "timeLayout": "merged"
    }
}

image-20210401052436570

{
    "data": "graph.json",
    "entity": "graph",
    "combination": [
        {
            "change": ["unchanged", "appeared"],
            "encoding": {
                "graphLayout": "square-matrix(time % 4 * 45)",
                "timeLayout": "juxtaposed"
            }
        },
        {
            "change": "unchangedNode",
            "encoding": {
                "markLins": "curve"
            }
        }
    ]
}

image-20210401051135537

{
    "data": "graph.json",
    "combination": [
        {
            "entity": "graph",
            "change": "all",
            "encoding": {
                "graphLayout": "matrix",
                "timeLayout": "juxtaposed"
            }
        },
        {
            "entity": "links",
            "change": ["all", "disappear(frame='next')"],
            "encoding": {
                "color": "change"
            }
        }
    ]
}

image-20210401051520398

{
    "data": "graph.json",
    "combination": [
        {
            "entity": "graph",
            "change": "all",
            "encoding": {
                "graphLayout": "matrix",
                "timeLayout": "juxtaposed"
            }
        },
        {
            "entity": "links",
            "change": "all",
            "encoding": {
                "color": "change"
            }
        }
    ]
}

image-20210401053831199

{
    "data": "graph.json",
    "entity": "graph",
    "combination": [
        {
            "change": "all",
            "encoding": {
                "timeLayout": "merged",
                "graphLayout": "circular",
                "color": {
                    "field": "time",
                    "scale": "ordinal"
                }
            }
        },
        {
            "change": ["unchangedNode", "appearNode", "disappearNode"],
            "encoding": {
                "chart": {
                    "name": "lineChart",
                    "field": "change==disappeared?0:1",
                    "scale": "bin-ordinal"
                }
            }
        }
    ]
}

image-20210401062428268

{
    "data": "graph.json",
    "entity": "graph",
    "combination": [
        {
            "change": "all",
            "encoding": {
                "timeLayout": "merged",
                "graphLayout": "force-directed",
                "color": {
                    "field": "time",
                    "scale": "ordinal"
                }
            }
        },
        {
            "change": ["unchangedNode", "appearNode", "disappearNode"],
            "encoding": {
                "chart": {
                    "name": "pieChart",
                    "field": "time",
                    "scale": "ordinal"
                }
            }
        }
    ]
}

image-20210401061700444

{
    "data": "graph.json",
    "entity": "graph",
    "change": "all",
    "encoding": {
        "graphLayout": "matrix",
        "timeLayout": "merged",
        "chart": {
            "name": "lineChart",
            "field": "change==disappeared?0:1",
            "scale": "bin-ordinal"
        }
    }
}

image-20210401053846356

{
    "data": "graph.json",
    "entity": "graph",
    "change": "all",
    "encoding": {
        "graphLayout": "matrix",
        "timeLayout": "merged",
        "chart": {
            "name": "barChart",
            "field": "time",
            "scale": "ordinal"
        }
    }
}

image-20210401054751863

{
    "data": "graph.json",
    "entity": "graph",
    "change": "all",
    "encoding": {
        "graphLayout": "matrix",
        "timeLayout": "merged",
        "chart": {
            "name": "linechart",
            "field": "change==disappeared?0:1",
            "scale": "bin-ordinal"
        }
    }
}

image-20210401062531531

{
    "data": "graph.json",
    "entity": "graph",
    "combination": [
        {
            "change": ["appeared", "disappeared"],
            "encoding": {
                "timeLayout": "juxtaposed",
                "graphLayout": "bipartite",
                "color": {
                    "field": "time",
                    "scale": "quantitative"
                }
            }
        },
        {
            "change": ["unchangedNode", "appearedNode"],
            "encoding": {
                "chart": {
                    "name": "lineChart",
                    "field": "change==disappeared?0:1",
                    "scale": "bin-ordinal"
                },
                "markLine": "dotted"
            }
        }
    ]
}

image-20210401054840388

{
    "data": "graph.json",
    "combination": [
        {
            "entity": "graph",
            "change": ["unchanged", "appeared"],
            "encoding": {
                "timeLayout": "juxtaposed",
                "graphLayout": "grid"
            }
        },
        {
            "entity": "shortestPath(start='A', end='E', time='1')",
            "change": "unchanged",
            "encoding": {
                "color": "green"
            }
        }
    ]
}

image-20210401060251041

{
    "data": "graph.json",
    "combination": [
        {
            "entity": "graph",
            "change": ["unchanged", "appeared"],
            "encoding": {
                "timeLayout": "juxtaposed",
                "graphLayout": "circular",
                "link": "curve"
            }
        },
        {
            "entity": "shortestPath(start='A', end='E', time='1')",
            "change": "unchanged",
            "encoding": {
                "color": "green"
            }
        }
    ]
}

image-20210401060800097

{
    "data": "graph.json",
    "combination": [
        {
            "entity": "graph",
            "change": ["unchanged", "appeared"],
            "encoding": {
                "timeLayout": "juxtaposed",
                "graphLayout": "matrix"
            }
        },
        {
            "entity": "shortestPath(start='A', end='E', time='1')",
            "change": "unchanged",
            "encoding": {
                "color": "green"
            }
        }
    ]
}

image-20210401060911966

{
    "data": "large-dynamic.json",
    "combination": [
        {
            "entity": "graph",
            "change": ["unchanged", "appeared"],
            "encoding": {
                "timeLayout": "juxtaposed",
                "graphLayout": "force-directed",
                "shape": "node.role=='people'?circle:cross"
            }
        },
        {
            "entity": "frequent-structure",
            "combination": [
                {
                    "change": ["unchangedNode", "appearedNode"],
                    "encoding": {
                        "color": "red"
                    }
                },
                {
                    "change": "unchangedNode",
                    "encoding": {
                        "markLine": {
                            "name": "curve",
                            "color": "red"
                        }
                    }
                }
            ]
        },
        {
            "entity": "anomaly-detection",
            "combination": [
                {
                    "change": ["unchangedNode", "appearedNode"],
                    "encoding": {
                        "color": "purple"
                    }
                },
                {
                    "change": "unchangedNode",
                    "encoding": {
                        "markLine": ["curve", "purple"]
                    }
                }
            ]
        }
    ]
}

image-20210401061806394

{
    "data": "graph.json",
    "entity": "graph",
    "change": ["unchanged", "appeared"],
    "encoding": {
        "graphLayout": "force-directed",
        "timeLayout": "juxtaposed",
        "link": "curve"
    }
}

image-20210401061906664

{
    "data": "graph.json",
    "entity": "graph",
    "change": ["unchanged", "appeared"],
    "encoding": {
        "graphLayout": "Bipartite",
        "timeLayout": "juxtaposed",
        "color": "change",
        "markLine": "line"
    }
}

image-20210401062052963

{
    "data": "graph.json",
    "entity": "graph",
    "change": ["unchanged", "appeared"],
    "encoding": {
        "graphLayout": "one-MDS",
        "timeLayout": "juxtaposed",
        "markLine": {
            "type": "line",
            "color": "time"
        },
        "show": false
    }
}

image-20210401062247954

{
    "data": "graph.json",
    "entity": "graph",
    "change": ["unchanged", "appeared"],
    "encoding": {
        "graphLayout": "MDS",
        "timeLayout": "juxtaposed",
        "shape": "Voronoi",
        "color": "id",
        "animation": 300
    }
}

image-20210401063329584

{
    "data": "graph.json",
    "combination": [
        {
            "entity": "graph",
            "change": "all",
            "encoding": {
                "graphLayout": "circular",
                "timeLayout": "circular"
            }
        },
        {
            "entity": ["unchangedNode", "appearedNode", "disappearNode"],
            "change": "all",
            "encoding": {
                "color": "change",
                "markLine": "curve",
                "timeInsert": {
                    "connect": "node",
                    "type": "curve"
                }
            }
        }
    ]
}