indexLabelFontFamily: String

Sets the Index Label’s Font Family.

Default: “Calibri, Optima, Candara, Verdana, Geneva, sans-serif”
Example: “calibri” , “tahoma”, “verdana” ..
var  chart =  new  CanvasJS.Chart("container",
{
 .
 .
 data: [{
  dataPoints: [
   { x: 10, y: 10,  indexLabel: "label1", indexLabelFontFamily: "verdana"},

   ],
  },

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

Try Editing The Code


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