0.1.0 • Published 8 years ago

echarts-dagre v0.1.0

Weekly downloads
-
License
ISC
Repository
-
Last release
8 years ago

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: [...]
    }]
});