Bars are usually placed side-by-side for comparison. However, if the values are part of a whole, you can stack bars in different datasets to emphasize this relationship. We can stack the volumes of the world's oceans, since their sum reveals the total volume of ocean water in the world. The following data object places the volume of each ocean in a separate dataset, as follows:
const dataObj = { labels: ["Volume"], // there is only one category datasets: [ { label: "Arctic", data: [18750], backgroundColor: "hsla(0,100%,50%,0.5)" },{ label: "North Atlantic", data: [146000], backgroundColor: "hsla(60,100%,50%,0.5)" },{ label: "South Atlantic", data: [160000], backgroundColor: "hsla(120,100%,50%,0.5)" },{ label: "Indian", data: [264000], backgroundColor: "hsla(180,100%,50%,0.5)" },{ label: "North Pacific", data: [341000], ...