[Chartjs]-Chart.js: How to get x-axis labels to show on top of bars in bar chart

1👍

You need the mirror attribute set to true.

Mirror attribute is in Options => scales => xaxis => ticks => mirror.

public barChartOptions: any = {
    scales: {
        yAxes: [{
            ticks: {
                mirror: false
            }
        }],
        xAxes: [{
            ticks: {
                mirror: true                }
        }],  ....

Leave a comment