markerType: String

Sets marker type to be rendered at each dataPoint. If mentioned at dataSeries, markers set here will take precedence.


Default: “circle”
Options: “circle”, “square”, “cross”, “triangle”

Notes
  • To disable marker set markerType to “none”.
  • Markers can be used in All line charts, area charts, scatter chart and bubble Chart.


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

   ],

  },
 ]
 .
 .
});
chart.render();


Try it Yourself by Editing the Code below.

  Also See:    



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.