Margin or Padding, Chart JS

0

Is there a way to increase the space between the bar and the edge?

otherwise, Can the red bar be thinner?

link

var canvas = document.getElementById('myChart');
var data = {
    labels: ["January"],
    datasets: [
        {
            label: "My First dataset",
            backgroundColor: "rgba(255,99,132,0.2)",
            borderColor: "rgba(255,99,132,1)",
            borderWidth: 2,
            hoverBackgroundColor: "rgba(255,99,132,0.4)",
            hoverBorderColor: "rgba(255,99,132,1)",
            data: [65, 59, 30, 81, 56, 55, 40],
        }
    ]
};
var option = {

xAxes: {
  gridLines: {
   tickMarkLength: -50
    }
},

};


var myBarChart = Chart.Bar(canvas,{
	data:data,
  options:option
});
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.1.3/Chart.min.js"></script>
<canvas id="myChart" width="400" height="500"></canvas>
    
asked by nawelittle 05.06.2017 в 17:43
source

0 answers