# KLineChartAndroid **Repository Path**: ActenDy/KLineChartAndroid ## Basic Information - **Project Name**: KLineChartAndroid - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-12-15 - **Last Updated**: 2021-12-15 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # KLineChart[(中文)](./translate/zh-CN.md) [![Build Status](https://travis-ci.org/liihuu/KLineChartAndroid.svg?branch=master)](https://travis-ci.org/liihuu/KLineChartAndroid) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/2a664d8f66ba4bd38abe713e6301d711)](https://www.codacy.com/app/liihuu/KLineChartAndroid?utm_source=github.com&utm_medium=referral&utm_content=liihuu/kline&utm_campaign=Badge_Grade) [![API](https://img.shields.io/badge/API-14%2B-brightgreen.svg?style=flat)](https://github.com/liihuu/KLineChartAndroid) [![Download](https://api.bintray.com/packages/liiiiiihu/maven/klinechart/images/download.svg?version=2.2.3) ](https://bintray.com/liiiiiihu/maven/klinechart/2.2.3/link) [![License](https://img.shields.io/badge/License-MIT-green.svg)](./LICENSE) A kline UI widget for android. Support analysis indicators and style changes, as well as customize the drawing of something you want to display. ## Usage Put a widget in the XML layout, set some attributes ```xml ``` Add data and set some attributes in the code. #### Kotlin ```kotlin k_line_chart.candle.candleStyle = Candle.CandleStyle.OHLC k_line_chart.addData(dataList) ``` #### Java ```java k_line_chart.getCandle().setCandleStyle(Candle.CandleStyle.OHLC) k_line_chart.addData(dataList) ``` ## Download ### gradle ```groovy implementation 'com.liihuu.widget:klinechart:2.2.3' ``` ### maven ```xml com.liihuu.widget klinechart 2.2.3 pom ``` ## Indicator ### Supported by default
MA VOL MACD BOLL KDJ KD RSI BIAS BRAR CCI
DMI CR PSY DMA TRIX OBV VR WR MTM SAR
The main chart supports all technical analysis indicators, generally only set NO, MA, BOLL and SAR. NO means no display. ### Custom indicator Charts support custom indicator. [You can refer to examples.](./app/src/main/java/com/liihuu/kline/CustomIndicatorActivity.kt) ## Attributes Attributes can be changed to change the appearance of the chart. [Here is attributes detail](./ATTRIBUTE-DETAIL.md) ## Screenshot ## Examples + [examples apk](./apk/release/app-release.apk) + [style setting](./app/src/main/java/com/liihuu/kline/StyleSettingActivity.kt) + [custom draw price mark](./app/src/main/java/com/liihuu/kline/DrawPriceMarkActivity.kt) + [indicator setting](./app/src/main/java/com/liihuu/kline/IndicatorSettingActivity.kt) + [custom indicator](./app/src/main/java/com/liihuu/kline/CustomIndicatorActivity.kt) + [custom draw tooltip general data](./app/src/main/java/com/liihuu/kline/DrawTooltipGeneralDataActivity.kt) + [custom tooltip general data](./app/src/main/java/com/liihuu/kline/CustomTooltipGeneralDataActivity.kt) + [value format](./app/src/main/java/com/liihuu/kline/ValueFormatActivity.kt) + [segmented loading data](./app/src/main/java/com/liihuu/kline/SegmentLoadDataActivity.kt) + [segmented loading data with animation](./app/src/main/java/com/liihuu/kline/SegmentLoadDataWithAnimActivity.kt) + [filling data](./app/src/main/java/com/liihuu/kline/FillDataActivity.kt) + [scrolling](./app/src/main/java/com/liihuu/kline/ScrollingActivity.kt) ## Thanks + [MPAndroidChart](https://github.com/PhilJay/MPAndroidChart) ## License Copyright (c) 2019 lihu 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.