chore(frontend): install chartjs-chart-sankey

This commit is contained in:
Herculino Trotta
2025-02-11 00:37:48 -03:00
parent 9c55dac866
commit d0f2742637
3 changed files with 14 additions and 0 deletions

View File

@@ -24,6 +24,7 @@
"babel-loader": "^8.2.3",
"bootstrap": "^5.3.3",
"chart.js": "^4.4.6",
"chartjs-chart-sankey": "^0.14.0",
"clean-webpack-plugin": "^4.0.0",
"copy-webpack-plugin": "^11.0.0",
"core-js": "^3.20.3",
@@ -3235,6 +3236,15 @@
"pnpm": ">=8"
}
},
"node_modules/chartjs-chart-sankey": {
"version": "0.14.0",
"resolved": "https://registry.npmjs.org/chartjs-chart-sankey/-/chartjs-chart-sankey-0.14.0.tgz",
"integrity": "sha512-MrU3lE73TE9kALy4MjWFlfcwf4R1EN/DBvhHxmv9n4AHap//JLKjlJTLIZwHsUjDsYo0B8PuMkrJODwfirEZUA==",
"license": "MIT",
"peerDependencies": {
"chart.js": ">=3.3.0"
}
},
"node_modules/chokidar": {
"version": "3.6.0",
"resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz",

View File

@@ -37,6 +37,7 @@
"babel-loader": "^8.2.3",
"bootstrap": "^5.3.3",
"chart.js": "^4.4.6",
"chartjs-chart-sankey": "^0.14.0",
"clean-webpack-plugin": "^4.0.0",
"copy-webpack-plugin": "^11.0.0",
"core-js": "^3.20.3",

View File

@@ -1,2 +1,5 @@
import Chart from 'chart.js/auto';
import {SankeyController, Flow} from 'chartjs-chart-sankey';
Chart.register(SankeyController, Flow);
window.Chart = Chart;