innerRadius: Number/String

innerRadius property allows you to set a Doughnut chart’s inner radius. Value can either be in pixels (number – ex: 100) or percent (string – ex: “80%”). Percent values are relative to the outer radius of doughnut chart.

Default: “70%”
Example: 200, 150, “90%”, “75%”
Note
  • Pixel values are Numbers.
  • Percent values are strings.
var  chart =  new  CanvasJS.Chart("container",
{
 .
 .
  data: [{
   type: "pie",
   radius:  "90%", 
   innerRadius: "70%"
 
  },
 ]
 .
 . 
});
chart.render();

Try Editing The Code

  Also See:    


If you have any questions, please feel free to ask in our forums.Ask Question