想把第一列柱状图变成红色,就是当open=100的时候,变成红色,
function candlestickFormat(obj) {
var eles = obj.eles,
data = obj.data,
open = data.open,
close = data.close,
hlEl = eles.highLow,
oEl = eles.open,
cEl = eles.close,
style = obj.style;
if (open == 100) {
color = style.risingClose.fill;
style. risingClose.fill = "red";
}
}
打断点跟踪,第一遍走了,后5遍没走,但是运行出来,第4和5列变了颜色
鼠标移动到第一列上去的时候,第一列还变成红色
demo已发
|