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.
In case of waterFall chart, rising color changes the default color of non-negative dataPoints. The fallingColor can be a “HTML Color Name” or “hex” code.
Default: “white”
Options: “red”, “#DD7E86”, etc.
- risingColor property can only be used with candle stick chart.
var chart = new CanvasJS.Chart("container",
{
.
.
data:[{
type : "candlestick",
risingColor: "#DD7E86",
},
]
.
.
});
chart.render();
Pingback: CanvasJS v1.5 with Stock Charts, Range Charts & Export as Image Feature
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.