d3+markmap-view实现思维导图示例代码

代码语言:html

所属分类:图表

代码描述:d3+markmap-view实现思维导图示例代码

代码标签: d3 markmap-view 思维导图 示例

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">

    <style>
        * {
          margin: 0;
          padding: 0;
        }
        #mindmap {
          display: block;
          width: 100vw;
          height: 100vh;
        }
    </style>

</head>

<body>
    <svg id="mindmap"></svg>
    <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/d3.6.2.0.js"></script>
    <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/markmap-view.0.1.1.js"></script>
    <script>
        ((e, t, r) => {
        const {
            Markmap: n
        } = e();
        window.mm = n.create("svg#mindmap", null == t ? void 0 : t(), r)
    })(() => window.markmap, t => {
        return t = t || window.d3, {
            color: (n = t.scaleOrdinal(t.schemeCategory10), t => n(t.p.i))
        };
        var n
    }, {
        "t": "heading",
        "d": 1,
        "p": {},
        "v": "Bfw代码库",
        "c": [{
            "t": "heading",
            "d": 2,
            "p": {},
            "v": "html特效代码",
            "c": [{
                "t": "list_item",
   .........完整代码请登录后点击上方下载按钮下载查看

网友评论0