enlarge radius of the circumference of the chart donut-chart, with chart.js

0

I have a graph donut chart on my page, but the line of the circumference is very wide I want to make it thinner, for that I need to know how to enlarge the radius, this is my graphic.

What I want is for the blue to be thinner.

This is my code in java script I'm using the library chart.js:

    new Chart(document.getElementById("doughnut-chart"), {
      type: 'doughnut',
      data: {
        labels: ["Occupancy", "Other"],
        datasets: [
          {
            label: "Porcentaje",
            backgroundColor: ["#005289", "#FFFF"],
            data: [response['occ'],response['comp_occ']]
          }
        ]
      },
      options: {
        title: {
          display: true,
          text: 'Occupancy Report'
        }
      }
  }); 
    
asked by user91691 21.06.2018 в 23:46
source

1 answer

0

You can use cutoutPercentage . Here you can find the documentation: link

    
answered by 21.06.2018 в 23:59