Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

你好,请问一下怎么设置默认的蜡烛图显示样式呢 #33

Open
fx1422 opened this issue Feb 18, 2018 · 2 comments
Open

你好,请问一下怎么设置默认的蜡烛图显示样式呢 #33

fx1422 opened this issue Feb 18, 2018 · 2 comments

Comments

@fx1422
Copy link

fx1422 commented Feb 18, 2018

No description provided.

@xwm0660
Copy link

xwm0660 commented Jun 6, 2018

creactpolygon 好像是改这个绘制的方法

@f056917
Copy link

f056917 commented Dec 25, 2018

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();
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants