`
haoningabc
  • 浏览: 1489849 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

vizceral-example的例子

阅读更多
自定义图和加载结构

代码在
https://github.com/killinux/vizceral-example

vizceral-example/sample_data_chat.json
{
  "renderer": "region", "name": "test",
  "maxVolume": 100.0,
  "nodes": [
    {
          "renderer": "region",
          "name": "main",
          "maxVolume": 100.0 ,
          "displayName": "点外卖"
    },
	{
          "renderer": "region",
          "name": "findShop",
          "maxVolume": 100.0 ,
          "displayName": "找商店"
    },
    {
          "renderer": "region",
          "name": "findGoods",
          "maxVolume": 100.0,
          "displayName": "找商品"
    },
    {
          "renderer": "region",
          "name": "out",
          "maxVolume": 100.0,
          "displayName": "没找到你要的哟"
    },
    {
          "renderer": "region",
          "name": "getIt",
          "maxVolume": 100.0,
          "displayName": "找到喽,您要的是 $shop 的 $goods"
    }
  ],
  "connections": [
    {
          "source": "main",
          "target": "findShop",
          "metrics": {
            "danger": 1,
            "normal": 10.0,
            "warning": 1.0
          }
    },
	{
          "source": "main",
          "target": "findGoods",
          "metrics": {
            "danger": 1,
            "normal": 10.0,
            "warning": 1.0
          }
    },
	{
          "source": "findGoods",
          "target": "findShop",
          "metrics": {
            "danger": 1,
            "normal": 10.0,
            "warning": 1.0
          }
    },
	{
          "source": "findShop",
          "target": "findGoods",
          "metrics": {
            "danger": 1,
            "normal": 10.0,
            "warning": 1.0
          }
    },
    {
          "source": "findShop",
          "target": "out",
          "metrics": {
            "danger": 1,
            "normal": 10.0,
            "warning": 1.0
          }
    },
    {
          "source": "findGoods",
          "target": "out",
          "metrics": {
            "danger": 1,
            "normal": 10.0,
            "warning": 1.0
          }
    },
    {
          "source": "findShop",
          "target": "getIt",
          "metrics": {
            "danger": 1,
            "normal": 10.0,
            "warning": 1.0
          }
    },
    {
          "source": "findGoods",
          "target": "getIt",
          "metrics": {
            "danger": 1,
            "normal": 10.0,
            "warning": 1.0
          }
    }
  ]
}

vizceral-example/src/components/trafficFlow.jsx
修改155行
 beginSampleData () {
    this.traffic = { nodes: [], connections: [] };
    //    request.get('sample_data.json')
    // modify by hao
    request.get('sample_data_chat.json')
      .set('Accept', 'application/json')
      .end((err, res) => {
        if (res && res.status === 200) {
          this.traffic.clientUpdateTime = Date.now();
          this.updateData(res.body);
        }
      });
  }

分享到:
评论

相关推荐

    vizceral-example:Vizceral应用程序示例

    粘液样例这是一个示例应用程序,该示例应用在图形周围使用。 有关在自己的项目中使用... $ docker build -t <name>/vizceral-example .$ docker run -p 41911:8080 -d <name>/vizceral-example然后,您应该能够导航到

    ( shiro-example编程例子.zip )

    ( shiro-example编程例子.zip )( shiro-example编程例子.zip )( shiro-example编程例子.zip )

    MiniDao-example1.2

    MiniDao-example1.2MiniDao-example1.2MiniDao-example1.2MiniDao-example1.2MiniDao-example1.2MiniDao-example1.2MiniDao-example1.2MiniDao-example1.2MiniDao-example1.2MiniDao-example1.2MiniDao-example1.2...

    DONUT: CTC-based Query-by-Example Keyword Spotting

    DONUT: CTC-based Query-by-Example Keyword Spotting

    pmml-lightgbm-example-executable-1.4-SNAPSHOT.jar

    1、lgb模型转换pmml格式

    qt-webassembly-examples例子工程

    qt-webassembly-examples例子工程qt-webassembly-examples例子工程qt-webassembly-examples例子工程qt-webassembly-examples例子工程qt-webassembly-examples例子工程qt-webassembly-examples例子工程qt-webassembly...

    sharding-jdbc-example

    本示例以"sharding-jdbc-example"为主题,涵盖了Spring-Boot和Spring-Namespace的集成应用,旨在帮助开发者更好地理解和运用Sharding-JDBC。 一、Sharding-JDBC简介 Sharding-JDBC是ShardingSphere项目的一部分,它...

    config-example.yml

    GraphHopper配置文件,配合web打包jar进行相应GraphHopper服务的配置,配置相关数据策略

    qsv-encoder-example h264_qsv intel hd 显卡 ffmpeg gpu编码示例

    qsv-encoder-example intel hd 显卡 ffmpeg gpu编码示例 使用ffmpeg h264_qsv编码器

    hibernate-search-example-master例子

    hibernate search的例子,使用的spring.version:3.2.1.RELEASE hibernate.version:4.2.0.Final hibernate-search.version:4.2.0.Final

    boot-example-netty-tcp-2.0.5

    使用SpringBoot2.x集成Netty4.x创建基于TCP/IP协议的服务端和客户端的Demo代码案例 使用了SpringBoot+swaggerUI方式进行测试,客户端可以给服务端发送消息,服务端也可以给已经连上的客户端发送消息,使用了通道保活...

    react-three-renderer-example, 响应三个渲染器的示例.zip

    react-three-renderer-example, 响应三个渲染器的示例 react-three-renderer-examplereact-three-renderer的示例。https://toxicfork.github.com/react-three-renderer-example/安装npm

    Django2-by-example-zh.pdf 中文版 20190129修订

    Django 2 by example 博客项目–基础 Django 2 by example 博客项目–增加高级功能 Django 2 by example 博客项目–扩展功能 Django 2 by example 社交网站项目–用户身份验证 Django 2 by example 社交网站项目–-...

    rig-config-example.txt

    rig-config-example.txt

    single-file-example.html

    react,single-file-example,最简单的react练习模板。 直接在线引用react相关的js文件

    ch06-example01.ipynb

    ch06-example01.ipynb

    leaflet-example.zip

    这个"leaflet-example.zip"压缩包提供了一个使用Leaflet加载本地离线地图瓦片的示例。在深入探讨之前,先理解几个关键概念: 1. **Leaflet**: Leaflet是一个流行的开源地图库,它具有良好的性能、易用性和跨平台...

    tproxy-example, 如何使用TPROXY来代理tcp连接的示例.zip

    tproxy-example, 如何使用TPROXY来代理tcp连接的示例 tproxy示例Linux的防火墙是其中最强大的网络工具之一。 我最喜欢的特性之一是tproxy目标,它的名称意味着你可以以代理不同类型的连接。在寻找如何使用TPROXY的...

    VTK-example.rar_VTK-example_vtk_vtk example

    这个名为“VTK-example.rar_VTK-example_vtk_vtk example”的压缩包文件包含了一系列VTK的示例代码,旨在帮助开发者理解和学习如何在实际项目中应用VTK。 1. **VTK的基本概念**: VTK由多种模块组成,包括数据结构...

    NotificationListenerService-Example, NotificationListenerService示例.zip

    NotificationListenerService-Example, NotificationListenerService示例 NotificationListenerService示例Android 4.3 ( API 18 ) 中引入了 ##Introduction NotificationListenerService 。 它允许应用程序在创建...

Global site tag (gtag.js) - Google Analytics