PointlineJS is an SVG based JS library for drawing tree diagrams. It relies on Treant-JS, Raphael for handling SVG and animations, JQuery.
npm i pointlinejs
import { PointlineJS } from "pointlinejs";
<div id="tree-simple" style="height: 600px; width: 900px;"></div>
const simple_chart_config = {
chart: {
container: "#tree-simple",
},
nodeStructure: {
text: { name: "Parent node" },
children: [
{
text: { name: "First child" },
},
{
text: { name: "Second child" },
},
],
},
};
const testTree = new PointlineJS(simple_chart_config);
testTree.getTree();
testTree.draw();
For run demo also see "Quick start" section.
$ git clone https://github.com/egor-progger/pointlinejs-quick-start
$ cd pointlinejs-quick-start
$ npm install
$ npx webpack serve
For Docs, Examples, and everything else see: https://egor-progger.github.io/pointlinejs/documentation/
Node version: minimum 20.18.1
npx webpack --config webpack.config.js
npm run starthttp://localhost:9000/documentation/ in browser