echarts-dagre

0.1.0 • Public • Published

ECharts graph layout extension using dagre.js

Install

<script src="echarts.min.js">
<script src="echarts-dagre.min.js">

Or

npm install echarts-dagre
var echarts = require('echarts');
require('echarts-dagre');

Usage

 
...
 
chart.setOption({
    ...
    series: [{
        // Change the layout to dagre, that's all you need to do.
        layout: 'dagre',
        nodes: [...],
        links: [...]
    }]
});

Dependents (0)

Package Sidebar

Install

npm i echarts-dagre

Weekly Downloads

14

Version

0.1.0

License

ISC

Last publish

Collaborators

  • ecomfe-core
  • ovilia
  • lang
  • errorrik