Code Monkey home page Code Monkey logo

Comments (4)

jjstobbe avatar jjstobbe commented on May 22, 2024 4

I had the same problem. Seems to be some sort of yarn issue. I installed it normally using npm install and re-ran my project and it worked fine. For whatever reason, just using yarn add vued3tree doesn't work.

from vue.d3.tree.

David-Desmaisons avatar David-Desmaisons commented on May 22, 2024 1

Could you share what was the problem to avoid someone else open a similar issue later, and so on?

from vue.d3.tree.

fontainio avatar fontainio commented on May 22, 2024

you can inspect the error here https://fontain.io/tree

from vue.d3.tree.

fontainio avatar fontainio commented on May 22, 2024
<template>
  <div id="container">
  <tree :data="tree" :node-text="name" layoutType="circular" class="tree"></tree></div>
</template>

<script>
import {tree} from 'vued3tree'

export default {
  components: {
    tree
  },
  data() {
    return {
      tree: {
        name: "father",
        children:[{
          name: "son1",
          children:[ {name: "grandson"}, {name: "grandson2"}]
        },{
          name: "son2",
          children:[ {name: "grandson3"}, {name: "grandson4"}]
        }]
      }
    }
  }
}

</script>

<style >
.tree {
    width: 100%;
    height: 100%;
}
.container{
    width: 500px;
    height: 500px;;
}
</style>

from vue.d3.tree.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.