labelFontWeight : String

Sets the font weight of crosshair’s label.

Default: “normal”
Example: “lighter”,”normal”,”bold”,”bolder”
  1. var chart = new CanvasJS.Chart("container",
  2. {
  3. .
  4. .
  5. axisX:{
  6. crosshair:{
  7. enabled: true,
  8. labelFontWeight: "bold",
  9. .
  10. .
  11. }
  12. },
  13. .
  14. .
  15. });
  16. chart.render();
  17.  

Try Editing The Code


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