tickColor: String

Sets the color of Tick Marks drawn on the axis. The value of tickColor can be a “HTML Color Name” or “hex” code .


Default: “#BBBBBB”
Example: “red”, “#006400”.

var  chart =  new  CanvasJS.Chart("container",
{
 .
 .
 axisX:{
   tickColor: "red",
 },
 .
 .
});
chart.render();


Try it Yourself by Editing the Code below.

  Also See:    



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

Comments 4

  1. Hi, is it possible to change the tick color of specific dataPoints?
    I want to make the first and last tick invisible because i have empty dataPoints there to have more space between grid and dataPoints.
    Thanks!

  2. Hi,

    Is it possible to have a wide “container” (like |______| |________| |______|) to clearly delimit each label in a column chart instead of just a dash/dot as in this example?

    Many thanks,
    Laurent

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