indexLabelFontSize: Number

Sets the Index Label’s Font Size in pixels.

Default: 18
Example: 12, 16, 22..
var  chart =  new  CanvasJS.Chart("container",
{
 .
 .
 data: [{
  dataPoints: [
   { x: 10, y: 10,  indexLabel: "label1", indexLabelFontSize: 26 },

   ],
  },

 ]
 .
 .
});
chart.render();

Try Editing The Code


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