I want to develop a bar chart as shown below is it possible to develop it using chart.js?
Step 1: Select the cell containing the data. Step 2: Select the 'Insert' Tab from the top and select the bar chart. Step 3: Right-click on one bar and choose the “Change series chart type” option. Step 4: In the change chart dialog box, make sure the Combo category is selected.
Right-click the chart, and select Change Series Chart Type from the context menu. See screenshot: 4. In the Change Chart Type dialog box, please click Bar in the left bar, click to highlight Stacked Bar, next click to select the chart with two series, and finally click the OK button.
A stacked chart is a form of bar chart that shows the composition and comparison of a few variables, either relative or absolute, over time. Also called a stacked bar or column chart, they look like a series of columns or bars that are stacked on top of each other.
Yes this is possible, see examples in this thread on Github https://github.com/chartjs/Chart.js/issues/5224. Notice the comment relating to offset, which will apply to versions of Chart js > 2.4.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With