Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to add text on the connect edge? #154

Open
autodataming opened this issue Oct 15, 2019 · 1 comment
Open

how to add text on the connect edge? #154

autodataming opened this issue Oct 15, 2019 · 1 comment

Comments

@autodataming
Copy link

how to add text on the connect edge as the following?
addtext

simple_chart_config = {
    chart: {
        container: "#tree-simple",
      rootOrientation: "WEST",
       levelSeparation: 450,
      nodeAlign: "BOTTOM",
       connectors: {
      type: "step",
      style: {
        "stroke-width": 2
      }
    },
    },
   
    nodeStructure: {
        text: { name: "Parent node" },
        children: [
            {
                text: { name: "First child" }
            },
            {
                text: { name: "Second child" }
            }
        ]
    }
};

var my_chart = new Treant(simple_chart_config);
@tatha-technicise
Copy link

Is there any way for the same??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants