Topic: Chart.js Change Bar width
                  
                  ak.leimrey
                  pro
                  asked 7 years ago
                
                Basically what the title says.
Because, according to the official Chart.js documentation it should be possible with either barThickness or with barPercentage, but in MDB it seems none of the choices are supported.
                
                  
                
                
                
              
              
            FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Status
              Resolved
Specification of the issue
              - ForumUser: Pro
 - Premium support: No
 - Technology: MDB Angular
 - MDB Version: -
 - Device: -
 - Browser: -
 - OS: -
 - Provided sample code: No
 - Provided link: No
 
Tags
                  
ak.leimrey pro commented 7 years ago
Nothing? I mean, to me it looks like this is merely a fork of the ng2-charts which lacks this options as well. Great. Seems I have to get the actual Chart.js to work somehow.Dawid Adach pro commented 7 years ago
Dear ak.leimrey, we are aiming to update charts with the newest chart.js in next releases. This should be available within few months however I cannot provide you exact date. You can also try to use chart.js along with MDB it should work correctly.ak.leimrey pro commented 7 years ago
Okay, it is possible do change bar width. I'm rather inexperienced and the chart.js documentation is probably among the poorest for usability. In the chartOptions you just have to use for example... scales: { yAxes: [{ barThickness: 40, }],