2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 13:05:42 +00:00

bom-price ranges as pie-chart

This commit is contained in:
2021-05-24 22:31:33 +02:00
parent 3363969c17
commit b4c9edcd27
3 changed files with 59 additions and 5 deletions

View File

@ -730,4 +730,18 @@ function loadStockPricingChart(context, data) {
},
}
});
}
}
function loadBomChart(context, data) {
return new Chart(context, {
type: 'doughnut',
data: data,
options: {
responsive: true,
maintainAspectRatio: false,
plugins: {legend: {position: 'bottom'},
scales: {xAxes: [{beginAtZero: true, ticks: {autoSkip: false}}]}}
}
});
}