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”
  1. var chart = new CanvasJS.Chart("container",
  2. {
  3. .
  4. .
  5. data:[ {
  6. dataPoints: [
  7. {x: 10 , y: 50 , lineDashType: "dash" },
  8.  
  9. ],
  10.  
  11. },
  12. ]
  13. .
  14. .
  15. });
  16. chart.render();

Try Editing The Code


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