risingColor: String

In candle Stick chart, when Closing Price is greater than Opening price, the body is filled with white by default and it can be overridden by risingColor property.

Default: “white”
Options: “red”, “#DD7E86”, etc.

Notes
  • risingColor property can only be used with candle stick chart.


var  chart =  new  CanvasJS.Chart("container",
{
 .
 .
 data:[{
   type : "candlestick",
   risingColor: "#DD7E86", 
  },
 ]
 .
 . 
});
chart.render();



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.

Comments 3

  1. Pingback: CanvasJS v1.5 with Stock Charts, Range Charts & Export as Image Feature

  2. Would it be possible to set a falling color as well, so that it’s different from the boundary color?

    • john,

      As of now, we don’t have falling color property. But we will consider it for future versions.

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.