gwhcn / flutter_k_chart Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
可以惯性滑动吗?
可以用在A股,美股上吗
涨跌额不对
成交量不对
boll时,左上角标志未改变
wr线有误
如果最大值和最小值相等,除以一个 0 , 得到NAN,再纳入计算,肯定有问题,导致k线绘制失败
k线往左划可以划到底,有没有方法可以类似于加载更多,划到底了自动加载更早的数据,而不是一次性就把所有数据加载了
Hy guys,
How to resolve this issue?
======== Exception caught by widgets library =======================================================
The following assertion was thrown building Container(constraints: BoxConstraints(w=Infinity, h=450.0), margin: EdgeInsets(10.0, 0.0, 10.0, 0.0)):
No instance of S was loaded. Try to initialize the S delegate before accessing S.current.
'package:flutter_k_chart/generated/l10n.dart':
Failed assertion: line 21 pos 12: '_current != null'
您好,请问如何引入到自己的项目中去?
您好,大神,请问有没有讨论群什么的,或者有您的什么联系方式,能否给个?
当高开低收的值都相同时,纵坐标会显示Infinity和NaN,而且蜡烛图没有,对比tradingView看,tradingView会显示一根短横线。可以再优化一下!
我把flutter_k_chart和其它widget组合使用时发现个问题,当切换到分时图时,分时图下面的控件背景受到了分时图背景色影响。假如我把底部控件的颜色设置成白色,实际显示的却是分时图的背景色。
static void calcBOLL(List dataList) {
for (int i = 0; i < dataList.length; i++) {
KLineEntity entity = dataList[i];
if (i < 19) {
entity.mb = 0;
entity.up = 0;
entity.dn = 0;
} else {
int n = 20;
double md = 0;
for (int j = i - n + 1; j <= i; j++) {
double c = dataList[j].close;
double m = entity.MA20Price;
double value = c - m;
md += value * value;
}
md = md / (n - 1);
md = sqrt(md);
entity.mb = entity.MA20Price;
entity.up = entity.mb + 2.0 * md;
entity.dn = entity.mb - 2.0 * md;
}
}
}
为什么要判断 i< 19?
如果没有交易量、所有的开收盘价格都一样的时候,MA5 等好多数据都是null。报错
APK 下载 404
当只有一根蜡烛,高开低收的值相等时,y轴刻度值会出现Ininfinity和NaN。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.