22 Star 197 Fork 50

Huoyo / metricflow

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
demo1.html 892 Bytes
一键复制 编辑 原始数据 按行查看 历史
Huoyo 提交于 2022-07-09 13:48 . add some funcs
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>MetricFlow</title>
<style>
</style>
<script src="../src/components/metricflow-1.2.0.min.js"></script>
<script>
window.onload = function () {
let metricFlow = MetricFlow("graph")
/*定义节点数据*/
let method1Data= {
"id":"primaryKey",
"title":{'name':"运行时间统计"},
"data":[
{'name':'方法:IndexController#method1'},
{'name':'平均耗时:0.333ms'},
]
};
/*在(20,200)坐标上创建一个节点*/
let node1 = metricFlow.createNode(method1Data,10,200);
}
</script>
</head>
<body>
<!--定义一个画布 graph -->
<div id="graph" height="700px" width="1100px" >
</div>
</body>
</html>
JavaScript
1
https://gitee.com/huoyo/metricflow.git
git@gitee.com:huoyo/metricflow.git
huoyo
metricflow
metricflow
master

搜索帮助