vue+d3

    import * as d3 from "d3"
    import "@hpcc-js/wasm"
    import "d3-graphviz"

    //d3Graphviz.graphviz("#graph_view");
    export default {
        name: "GraphView",
        mounted() {
            d3.select(this.$el).graphviz()
                .renderDot('digraph  {a -> b}');
        },
    }

推荐阅读更多精彩内容