Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ZuYun/Jgraph
:fire: 一个视觉效果还不错的图表控件(停止维护了,不建议直接用到项目)
https://github.com/ZuYun/Jgraph
animations chart customview
Last synced: 3 months ago
JSON representation
:fire: 一个视觉效果还不错的图表控件(停止维护了,不建议直接用到项目)
- Host: GitHub
- URL: https://github.com/ZuYun/Jgraph
- Owner: 5hmlA
- Created: 2016-05-07T12:57:27.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-04-08T13:31:37.000Z (over 1 year ago)
- Last Synced: 2024-05-22T06:11:33.901Z (6 months ago)
- Topics: animations, chart, customview
- Language: Java
- Homepage:
- Size: 11.2 MB
- Stars: 1,288
- Watchers: 50
- Forks: 203
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-github-android-ui - Jgraph - 可自定义图表 (图表(Chart))
README
## Star History
[![Star History Chart](https://api.star-history.com/svg?repos=5hmlA/Jgraph&type=Date)](https://star-history.com/#5hmlA/Jgraph&Date)
# Jgraph
[![License](https://img.shields.io/badge/license-Apache%202-green.svg?style=flat-square)](https://www.apache.org/licenses/LICENSE-2.0)
[![](https://img.shields.io/badge/Jgraph-download-brightgreen.svg?style=flat-square)](http://fir.im/y57x?release_id=57b1c789ca87a87b36000f2b)
[![](https://jitpack.io/v/mychoices/Jgraph.svg)](https://jitpack.io/#mychoices/Jgraph)![](https://raw.githubusercontent.com/mychoices/Jgraph/master/gif/2.gif)
![](https://raw.githubusercontent.com/mychoices/Jgraph/master/gif/4.gif)
![](https://raw.githubusercontent.com/mychoices/Jgraph/master/gif/6.gif)
![](https://raw.githubusercontent.com/mychoices/Jgraph/master/gif/13.gif)
![](https://raw.githubusercontent.com/mychoices/Jgraph/master/gif/15.gif)
![](https://raw.githubusercontent.com/mychoices/Jgraph/master/gif/22.gif)
![](https://raw.githubusercontent.com/mychoices/Jgraph/master/gif/101.gif)2. [Gradle](https://github.com/mychoices/Jgraph/blob/master/README.md#gradle)
3. [Demo](https://github.com/mychoices/Jgraph/blob/master/README.md#demo)
4. [Use Guide](https://github.com/mychoices/Jgraph/blob/master/README.md#use-guide)
1. [图表风格](https://github.com/mychoices/Jgraph/blob/master/README.md#graphstyle)
2. [滚动](https://github.com/mychoices/Jgraph/blob/master/README.md#scrollable)
2. [纵轴](https://github.com/mychoices/Jgraph/blob/master/README.md#纵轴)
3. [柱-动画](https://github.com/mychoices/Jgraph/blob/master/README.md#barshowstyle)
4. [柱-颜色](https://github.com/mychoices/Jgraph/blob/master/README.md#barcolor)
4. [线-动画](https://github.com/mychoices/Jgraph/blob/master/README.md#lineshowstyle)
4. [线-风格](https://github.com/mychoices/Jgraph/blob/master/README.md#linestyle)
5. [线-断0](https://github.com/mychoices/Jgraph/blob/master/README.md#linemode)
7. [线-颜色](https://github.com/mychoices/Jgraph/blob/master/README.md#linecolor)
8. [选中](https://github.com/mychoices/Jgraph/blob/master/README.md#select)
9. [切换数据](https://github.com/mychoices/Jgraph/blob/master/README.md#datachange)
5. [Versions](https://github.com/mychoices/Jgraph/blob/master/README.md#versions)
6. [Todo](https://github.com/mychoices/Jgraph/blob/master/README.md#todo)
7. [License](https://github.com/mychoices/Jgraph/blob/master/README.md#license)#Gradle
allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}
dependencies {
compile 'com.github.mychoices:Jgraph:v1.2'
}#DEMO
demo下载地址
[![](http://firicon.fir.im/2413a7e605e2ee423e8ca8f38e180320eba0cddc)](http://fir.im/y57x?release_id=57b1c789ca87a87b36000f2b)#User Guide
---
###*自定义属性*
```
```
## GraphStyle
```
setGraphStyle(@GraphStyle int graphStyle) //柱状图 和 折线图
```
![](https://raw.githubusercontent.com/mychoices/Jgraph/master/gif/01.gif)
## Scrollable
```
setScrollAble(boolean )
```
![](https://raw.githubusercontent.com/mychoices/Jgraph/master/gif/02.gif)
## 纵轴```
setYaxisValues(@NonNull String... showMsg)
setYaxisValues(int max, int showYnum)
setYaxisValues(int min, int max, int showYnum)
```
![](https://raw.githubusercontent.com/mychoices/Jgraph/master/gif/03.gif)## BarShowStyle
```
setBarShowStyle(@BarShowStyle int barShowStyle)
/**
* 水波 方式生长
*/
int BARSHOW_ASWAVE
/**
* 线条 一从直线慢慢变成折线/曲线
*/
int BARSHOW_FROMLINE
/**
* 柱形条 由某个往外扩散
*/
int BARSHOW_EXPAND/**
* 一段一段显示
*/
int BARSHOW_SECTION
```
![](https://raw.githubusercontent.com/mychoices/Jgraph/master/gif/04.gif)## barcolor
```
setNormalColor(@ColorInt int normalColor)
setPaintShaderColors(@ColorInt int... colors)
```
![](https://raw.githubusercontent.com/mychoices/Jgraph/master/gif/05.gif)
## LineStyle
```
setLineStyle(@LineStyle int lineStyle)
/**
* 折线
*/
int LINE_BROKEN = 0;
/**
* 曲线
*/
int LINE_CURVE = 1;
```
![](https://raw.githubusercontent.com/mychoices/Jgraph/master/gif/06.gif)
## LineShowStyle
```
setLineShowStyle(@LineShowStyle int lineShowStyle)/**
* 线条从无到有 慢慢出现
*/
int LINESHOW_DRAWING
/**
* 线条 一段一段显示
*/
int LINESHOW_SECTION
/**
* 线条 一从直线慢慢变成折线/曲线
*/
int LINESHOW_FROMLINE/**
* 从左上角 放大
*/
int LINESHOW_FROMCORNER
/**
* 水波 方式展开
*/
int LINESHOW_ASWAVE
```
![](https://raw.githubusercontent.com/mychoices/Jgraph/master/gif/07.gif)
## LineMode
```
setLineMode(@LineMode int lineMode)
/**
* 连接每一个点
*/
int LINE_EVERYPOINT
/**
* 跳过0 断开
*/
int LINE_JUMP0/**
* 跳过0 用虚线链接
*/
int LINE_DASH_0
```
![](https://raw.githubusercontent.com/mychoices/Jgraph/master/gif/08.gif)## linecolor
```
setNormalColor(@ColorInt int normalColor)
setPaintShaderColors(@ColorInt int... colors)
setShaderAreaColors(@ColorInt int... colors)
```
![](https://raw.githubusercontent.com/mychoices/Jgraph/master/gif/09.gif)
## select
```
setSelected(int selected)
setSelectedMode(@SelectedMode int selectedMode)
```
![](https://raw.githubusercontent.com/mychoices/Jgraph/master/gif/010.gif)# datachange
```
aniChangeData(List jchartList)
```
![](https://raw.githubusercontent.com/mychoices/Jgraph/master/gif/011.gif)# Versions
# Todo
Todo# License
Copyright 2016 Yun
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.