How to decrease the barthickness in ng2-charts?

πŸ‘:1

You can use the dataset option barPercentage as described here.

In you code, this could look as follows:

barChartData: ChartDataSets[] = [
  {
    label: 'My Dataset',
    data: [65, 56, 40],    
    barPercentage: 0.5
  }
];

πŸ‘:0

Just insert static data for testing purpose and set barThickness property instead of barPercentage. It worked for me.

Leave a comment