kline
kline copied to clipboard
你好,请问一下怎么设置默认的蜡烛图显示样式呢
creactpolygon 好像是改这个绘制的方法
CandlestickPlotter.prototype.Draw()方法里面 //烛台,stroke为阴线,fill为阳线 if (strokePosRects.length > 0) { context.strokeStyle = theme.getColor(Theme.Color.Positive); Plotter.createRectangles(context, strokePosRects); context.stroke(); } if (fillPosRects.length > 0) { context.fillStyle = theme.getColor(Theme.Color.Positive); Plotter.createRectangles(context, fillPosRects); context.fill(); } if (fillUchRects.length > 0) { context.fillStyle = theme.getColor(Theme.Color.Negative); Plotter.createRectangles(context, fillUchRects); context.fill(); } if (fillNegRects.length > 0) { context.fillStyle = theme.getColor(Theme.Color.Negative); Plotter.createRectangles(context, fillNegRects); context.fill(); }