lineDashType: String

Sets the Dash Type of axis line.

Default: solid
Example: “dot”, “dash”, etc.

Other Supported Dash Types:

  • “solid”
  • “shortDash”
  • “shortDot”
  • “shortDashDot”
  • “shortDashDotDot”
  • “dot”
  • “dash”
  • “dashDot”
  • “longDash”
  • “longDashDot”
  • “longDashDotDot”

  • When axisY grids are shown, it may overlap axisX line and axisX lineDashType may not be observed.

var  chart =  new  CanvasJS.Chart("container",

     lineDashType: "dot"

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