color: String

Sets the color of dataPoint. It overrides the color set at dataSeries level or the one chosen from theme. Value of color can be “HTML Color Name” or “hex” code.

Default: From Theme
Example: “red”, “green”..

  • Default colors are chosen from theme.

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



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.