chart.js plugin for making waterfall charts

后端 未结 3 1017
隐瞒了意图╮
隐瞒了意图╮ 2021-01-19 21:37

I want to create a chart.js plugin to create waterfall charts.

I am new to working with chart.js. I was thinking to extend the bar-chart to create a waterfall chart.

3条回答
  •  不思量自难忘°
    2021-01-19 22:01

    You can use the plugin recommented by Chart.JS https://github.com/everestate/chartjs-plugin-waterfall (Ref: https://www.chartjs.org/docs/2.7.2/notes/extensions.html)

    Installation

    npm install --save chartjs-plugin-waterfall
    

    Usage

    import waterFallPlugin from 'chartjs-plugin-waterfall';
    
    var chart = new Chart(ctx, {
        plugins: [waterFallPlugin]
    });
    

提交回复
热议问题