MCPcopy Index your code
hub / github.com/LambdaXiao/StockChart-MPAndroidChart

github.com/LambdaXiao/StockChart-MPAndroidChart @1.2

Chat with this repo
repository ↗ · DeepWiki ↗ · release 1.2 ↗ · + Follow
2,866 symbols 10,405 edges 277 files 1,223 documented · 43%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

StockChart-MPAndroidChart

基于MPAndroidChart 最新3.1.0版本的专业分时图和K线图

先上效果图:

Alt text

Alt text

Alt text

Alt text

快速开始

allprojects {
        repositories {
            ...
            maven { url 'https://jitpack.io' }
        }
    }
 implementation 'com.github.LambdaXiao:StockChart-MPAndroidChart:1.1'

如果需要根据不同业务修改代码,请直接依赖项目中的MPChartLib库。

简介

StockApp是Android平台的金融图表库,包括分时图K线图。本项目通过继承的方式定制了最新版本的MPAndroidChart

  • 使用简单,几行代码就可以实现专业分时K线图效果
  • 支持五日的分时图
  • 支持MACD、KDJ、RSI、SAR、BOLL、CCI、MA、SMA、EXPMA、KMA等指标的显示和切换
  • 支持图表的缩放,可以进行放大和缩小操作
  • 支持刻度值画在图表内侧和外侧,可自由定制
  • 横屏模式的展示
  • 分时图增加最近一点的数值闪动显示并在右侧画出最新价数值
  • 支持夜间模式的展示

apk体验

点击下载 http://d.6short.com/StockChart

或扫码下载

Alt text

反馈

本Demo根据以往从事股票类App开发经验实现通用画图模块,因为当初也是为了快速实现功能,bug在所难免,后面会持续更新,欢迎各位提issues和star! 也希望志同道合者能来一起完善该项目。

联系方式

email: lambdaxiao@gmail.com

QQ: 932599583

Android股票画图交流群: 322672046

Licenses

MIT License

Copyright (c) 2019 Lambda Xiao

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Extension points exported contracts — how you extend this code

IHighlighter (Interface)
Created by philipp on 10/06/16. [7 implementers]
MPChartLib/src/main/java/com/github/mikephil/charting/highlight/IHighlighter.java
IShapeRenderer (Interface)
Created by wajdic on 15/06/2016. Created at Time 09:07 [16 implementers]
MPChartLib/src/main/java/com/github/mikephil/charting/renderer/scatter/IShapeRenderer.java
OnChartGestureListener (Interface)
Listener for callbacks when doing gestures on the chart. @author Philipp Jahoda [6 implementers]
MPChartLib/src/main/java/com/github/mikephil/charting/listener/OnChartGestureListener.java
OnChartValueSelectedListener (Interface)
Listener for callbacks when selecting values inside the chart by touch-gesture. @author Philipp Jahoda [35 implementers]
MPChartLib/src/main/java/com/github/mikephil/charting/listener/OnChartValueSelectedListener.java
IFillFormatter (Interface)
Interface for providing a custom logic to where the filling line of a LineDataSet should end. This of course only works [7 …
MPChartLib/src/main/java/com/github/mikephil/charting/formatter/IFillFormatter.java

Core symbols most depended-on inside this repo

add
called by 371
MPChartLib/src/main/java/com/github/mikephil/charting/matrix/Vector3.java
get
called by 305
MPChartLib/src/main/java/com/github/mikephil/charting/utils/ObjectPool.java
getData
called by 251
MPChartLib/src/main/java/com/github/mikephil/charting/interfaces/dataprovider/ChartInterface.java
size
called by 198
MPChartLib/src/main/java/com/github/mikephil/charting/buffer/AbstractBuffer.java
getX
called by 195
MPChartLib/src/main/java/com/github/mikephil/charting/data/Entry.java
getY
called by 194
MPChartLib/src/main/java/com/github/mikephil/charting/data/BarEntry.java
convertDpToPixel
called by 156
MPChartLib/src/main/java/com/github/mikephil/charting/utils/Utils.java
setColor
called by 144
MPChartLib/src/main/java/com/github/mikephil/charting/data/BaseDataSet.java

Shape

Method 2,552
Class 262
Interface 34
Enum 18

Languages

Java100%
Kotlin1%

Modules by API surface

MPChartLib/src/main/java/com/github/mikephil/charting/charts/BarLineChartBase.java106 symbols
MPChartLib/src/main/java/com/github/mikephil/charting/charts/Chart.java105 symbols
MPChartLib/src/main/java/com/github/mikephil/charting/utils/ViewPortHandler.java62 symbols
MPChartLib/src/main/java/com/github/mikephil/charting/components/AxisBase.java62 symbols
MPChartLib/src/main/java/com/github/mikephil/charting/charts/PieChart.java58 symbols
MPChartLib/src/main/java/com/github/mikephil/charting/data/BaseDataSet.java57 symbols
MPChartLib/src/main/java/com/github/mikephil/charting/interfaces/datasets/IDataSet.java55 symbols
MPChartLib/src/main/java/com/github/mikephil/charting/components/Legend.java50 symbols
MPChartLib/src/main/java/com/github/mikephil/charting/stockChart/dataManage/KLineDataManage.java44 symbols
MPChartLib/src/main/java/com/github/mikephil/charting/components/YAxis.java39 symbols
MPChartLib/src/main/java/com/github/mikephil/charting/data/LineDataSet.java38 symbols
MPChartLib/src/main/java/com/github/mikephil/charting/data/ChartData.java38 symbols

For agents

$ claude mcp add StockChart-MPAndroidChart \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact