nullDataLineDashType: String

Sets the Line Dash Type of line wherever null data is present.

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

Supported Line Dash Types:

  • “solid”
  • “shortDash”
  • “shortDot”
  • “shortDashDot”
  • “shortDashDotDot”
  • “dot”
  • “dash”
  • “dashDot”
  • “longDash”
  • “longDashDot”
  • “longDashDotDot”
  • Will effect only if connectNullData is set to true.
  • Supported with all Line and Area Charts.
  • Not Supported on IE8.

var  chart =  new  CanvasJS.Chart("container",
  data: [{
   type: "line",
   nullDataLineDashType:  "dot" 

Try it Yourself by Editing the Code below.

In order to provide better support, we have closed the comments and switched completely to our Forums.
If you have any questions, please feel free to ask in our forums.


  1. Pingback: CanvasJS Chart 1.8.1 goes GA - CanvasJS