lineDashType: String

Sets the Line Dash Type for all Line Charts.


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

Supported Line Dash Types:

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


var  chart =  new  CanvasJS.Chart("container",
{
 .
 .
  data:[ {
   dataPoints: [
    {x: 10 , y: 50 , lineDashType: "dash" },

  ],

 },
 ]
 .
 .
});
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