简体   繁体   中英

How to increase Chart.js yAxes' height to prevent overlapping

overlapping problem How to config the chart.js (using react-chartjs-2) to prevent the overlapping problem. I have changed the barThickness and caused the overlapping. Which property can be used to change the group/category(?) height to prevent this problem?

Have you tried using the barPercentage Configuration?

  options: {
     indexAxis: 'y',
        barPercentage :0.5
    }
 }

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM