Giter VIP home page Giter VIP logo

llwenke / interactivechart Goto Github PK

View Code? Open in Web Editor NEW
114.0 3.0 35.0 1.19 MB

InteractiveChart:k线图(KChart,k线),实现了柔滑缩放,滑动加载更多。长按选中等交互,包含蜡烛图,分时图,交易量图,深度图,MACD,RSI,KDJ,BOLL图表,MA平均指标,SAR指标,游标指示器等。

License: Apache License 2.0

Java 85.87% Kotlin 14.13%
java andoird kotlin canvas

interactivechart's Issues

Features Suggestion

Hi there
First of all, I just wanna thank you for this library.
I Have some suggestions for you to make this library more robust.

Showing open orders on chart:
Just imagine the user puts an order to buy/sell in its orders book.

  1. Showing these orders if they are within the time frame.
  2. The moving ability to change the order price by prompting and confirmation alert dialog can be the killer features for this library.

image
this order have type also: Limit, Advanced Limit, Stop...
Sample Library

DepthChart

  1. Drawing a Separator line in the middle of the chart.
  2. Showing both Bids/Ask indexes with information on both sides.
    image

最后提几个问题,就不提了,用了一段时间后还是准备弃用了

1,BollChartModule 这个类为啥继承副指标基类,Boll这个指标和MA以及EMA都是主指标,是不是弄错?
2,EMA指标在adapter里面没有计算类,但是看到属性里面有这个,是漏掉了吗?
3,之前提过的#13 (comment) 数据不全的问题
4,一般k线都是默认显示表格头部一行的MA5,MA10,MA30,长按才显示不符合逻辑

第一次加载慢

第一次进入视图加载慢,延迟加载
image
getRender 报 空指针

已经同步更新,有个小问题

就是网格线会覆盖在图标之上,如图

image

试着修改FloatModule的位置, 副图和指标是可以,但是主图貌似还在网格线下面,如图
image

点击分时闪退com.wk.chart.module.TimeLineChartModule cannot be cast to com.wk.chart.module.CandleChartModule

java.lang.ClassCastException: com.wk.chart.module.TimeLineChartModule cannot be cast to com.wk.chart.module.CandleChartModule
at com.wk.chart.drawing.CursorDrawing.onInit(CursorDrawing.java:25)
at com.wk.chart.module.base.AbsChartModule.initDrawing(AbsChartModule.java:127)
at com.wk.chart.render.AbsRender.onViewRectChange(AbsRender.java:343)
at com.wk.chart.ChartView.onViewChanged(ChartView.java:579)
at com.wk.demo.activity.ChartActivity.switchModuleType(ChartActivity.java:325)
at com.wk.demo.activity.ChartActivity.onClick(ChartActivity.java:288)
at android.view.View.performClick(View.java:4848)
at android.widget.CompoundButton.performClick(CompoundButton.java:120)
at android.view.View$PerformClick.run(View.java:20262)
at android.os.Handler.handleCallback(Handler.java:815)
at android.os.Handler.dispatchMessage(Handler.java:104)
at android.os.Looper.loop(Looper.java:194)
at android.app.ActivityThread.main(ActivityThread.java:5714)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:984)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:779)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.