fujianlian / Klinechart
Android仿火币K线图实现(包含MA,BOLL,MACD,KDJ,RSI,WR指标)
Stars: ✭ 620
Programming Languages
java
68154 projects - #9 most used programming language
Projects that are alternatives of or similar to Klinechart
Hqchart
HQChart - H5, 微信小程序 沪深/港股/数字货币/期货/美股 K线图(kline),走势图,缩放,拖拽,十字光标,画图工具,截图,筹码图. 分析家语法,通达信语法,(麦语法),第3方数据替换接口
Stars: ✭ 1,126 (+81.61%)
Mutual labels: kline, chart
Klinechart
📈Lightweight k-line chart that can be highly customized. Zero dependencies. Support mobile.(可高度自定义的轻量级k线图,无第三方依赖,支持移动端)
Stars: ✭ 303 (-51.13%)
Mutual labels: kline, chart
Kschart
k线图/kline/kchart,已经集成MA/EMA/MACD/KDJ/BOLL/RSI/WR/AVG等指标,新增指标及其方便。适用于股票/区块链交易所等种类App。Swift5编写,CPU/内存占用率极低,60FPS稳定运行。示例集成websocket,并接入币安数据(需VPN)。
Stars: ✭ 909 (+46.61%)
Mutual labels: kline, chart
StockView
股票相关控件(分时图、五日分时图、自选股迷你分时图、资金趋势图、盈亏额/盈亏率)- (曲线图、折线图)
Stars: ✭ 87 (-85.97%)
Mutual labels: chart, kline
Hycharts
柱状图、折/曲线图、K线图(主图、交易量图、辅助图), 图与图可以自由组合, 支持分页加载数据 -----> 低内存、低耗电、滑动缩放顺滑
Stars: ✭ 394 (-36.45%)
Mutual labels: kline, chart
Flutter deer
🦌 Flutter 练习项目(包括集成测试、可访问性测试)。内含完整UI设计图,更贴近真实项目的练习。Flutter practice project. Includes a complete UI design and exercises that are closer to real projects.
Stars: ✭ 5,725 (+823.39%)
Mutual labels: chart
Wx Charts
微信小程序图表charts组件,Charts for WeChat Mini Program
Stars: ✭ 4,633 (+647.26%)
Mutual labels: chart
Billboard.js
📊 Re-usable, easy interface JavaScript chart library based on D3.js
Stars: ✭ 5,032 (+711.61%)
Mutual labels: chart
Gojs
JavaScript diagramming library for interactive flowcharts, org charts, design tools, planning tools, visual languages.
Stars: ✭ 5,739 (+825.65%)
Mutual labels: chart
Esp Dash
A blazing fast library to create a functional dashboard for ESP8266 and ESP32
Stars: ✭ 548 (-11.61%)
Mutual labels: chart
KLineChart
Android仿火币K线图实现(包含MA,BOLL,MACD,KDJ,RSI,WR指标)
本项目是在 tifezh的KChartView 基础上进行修改的,新增了KDJ、WR指标、最大值和最小值展示,对UI展示进行了修改。
建议使用之前先查看常见问题
项目运行效果
app下载
配置使用
<com.github.fujianlian.klinechart.KLineChartView
android:id="@+id/kLineChartView"
android:layout_width="match_parent"
android:layout_height="match_parent" />
主图和附图初始化
// KLineChartView
private void initView() {
...
// 依次添加副图子视图
addChildDraw(mMACDDraw);
addChildDraw(mKDJDraw);
addChildDraw(mRSIDraw);
addChildDraw(mWRDraw);
// 设置成交量视图
setVolDraw(mVolumeDraw);
// 设置主视图
setMainDraw(mMainDraw);
}
BaseKLineChartView
// 主图显示隐藏调用
public void changeMainDrawType(Status status) {
if (mainDraw != null && mainDraw.getStatus() != status) {
mainDraw.setStatus(status);
invalidate();
}
}
// 主视图当前子视图
public enum Status {
MA, BOLL, NONE
}
// 设置子视图,position依据初始化添加先后顺序下标
public void setChildDraw(int position) {
if (mChildDrawPosition != position) {
if (!isShowChild) {
isShowChild = true;
initRect();
}
mChildDraw = mChildDraws.get(position);
mChildDrawPosition = position;
isWR = position == 5;
invalidate();
}
}
// 子视图隐藏
public void hideChildDraw() {
mChildDrawPosition = -1;
isShowChild = false;
mChildDraw = null;
initRect();
invalidate();
}
KLineChartView
// 是否显示为分时图
public void setMainDrawLine(boolean isLine) {
mMainDraw.setLine(isLine);
}
自定义颜色
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="colorPrimary">#3F51B5</color>
<color name="colorPrimaryDark">#303F9F</color>
<color name="colorAccent">#FF4081</color>
<color name="chart_red">#26BF66</color>
<color name="chart_green">#FD6433</color>
<color name="chart_line">#C9933E</color>
<color name="chart_line_background">#1aC9933E</color>
<color name="chart_ma5">#DA8AE5</color>
<color name="chart_ma10">#39B0E8</color>
<color name="chart_ma30">#FFC76D</color>
<color name="chart_white">#ffffff</color>
<color name="chart_background">#202326</color>
<color name="chart_bac">#00FFFFFF</color>
<color name="chart_point_bac">#202326</color>
<color name="chart_grid_line">#1AFFFFFF</color>
<color name="chart_text">#818596</color>
<color name="chart_selector">#202326</color>
<color name="chart_tab_background">#30343C</color>
<color name="chart_tab_indicator">#FF6601</color>
</resources>
布局时修改KLineChartView的相关颜色即可
具体使用参照KLineChartDemo
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].