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”
Note
  • 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" 
 
  },
 ]
 .
 . 
});
chart.render();


Try it Yourself by Editing the Code below.



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

Comment

  1. Pingback: CanvasJS Chart 1.8.1 goes GA - CanvasJS