javascript - Chart Js - Wasting Graph Space -


does know why chart js wastes graph space? why not take full width of graph?

the graph sitting in bootstrap container > row if makes difference?

chart js wasting space

this code:

<canvas id="mostpopularproductionapps" width="100" height="150"></canvas> 

javascript:

barchartcreator(prodchart, prodlabels, proddata, '# heorku addons', 'number of addons per applications');    barchartcreator: function(domlocation, labels, data, label, title) {       var createdchart = new chart(domlocation, {           type: 'bar',           data: {               labels: labels,               datasets: [{                   label: label,                   data: data,                   backgroundcolor: 'rgba(54, 162, 235, 0.2)',                   bordercolor: 'rgba(255, 255, 255, 1)',                   borderwidth: 1               }]           },           options: {               scales: {                   yaxes: [{                       ticks: {                           beginatzero: true                       }                   }]               },               title: {                   display: true,                   text: title               }           }       });       return createdchart;     }, 


Comments

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -