d bar charts can be used to show how one data series is made up of a number of smaller pieces.</p>
<pre><code class="lang-javascript"><span class="hljs-keyword">var</span> stackedBar = <span class="hljs-keyword">new</span> Chart(ctx, {
    type: <span class="hljs-string">&apos;bar&apos;</span>,
    data: data,
    options: {
        scales: {
            xAxes: [{
                stacked: <span class="hljs-literal">true</span>
            }],
            yAxes: [{
                stacked: <span class="hljs-