Jgraph
项目地址: mychoices/Jgraph

简介:图表控件
- Gradle
- Demo
-
Use Guide
- 图表风格
- 滚动
- 纵轴
- 柱-动画
- 柱-颜色
- 线-动画
- 线-风格
- 线-断 0
- 线-颜色
- 选中
- 切换数据
- Versions
- Todo
- License
allprojects { repositories { ... maven { url "https://jitpack.io" } } } dependencies { compile 'com.github.mychoices:Jgraph:v1.2' }DEMO
demo 下载地址
setGraphStyle(@GraphStyle int graphStyle) //柱状图 和 折线图
setScrollAble(boolean )
setYaxisValues(@NonNull String... showMsg) setYaxisValues(int max, int showYnum) setYaxisValues(int min, int max, int showYnum)
setBarShowStyle(@BarShowStyle int barShowStyle) /** * 水波 方式生长 */ int BARSHOW_ASWAVE /** * 线条 一从直线慢慢变成折线/曲线 */ int BARSHOW_FROMLINE /** * 柱形条 由某个往外扩散 */ int BARSHOW_EXPAND /** * 一段一段显示 */ int BARSHOW_SECTION
setNormalColor(@ColorInt int normalColor) setPaintShaderColors(@ColorInt int... colors)
setLineStyle(@LineStyle int lineStyle) /** * 折线 */ int LINE_BROKEN = 0; /** * 曲线 */ int LINE_CURVE = 1;
setLineShowStyle(@LineShowStyle int lineShowStyle) /** * 线条从无到有 慢慢出现 */ int LINESHOW_DRAWING /** * 线条 一段一段显示 */ int LINESHOW_SECTION /** * 线条 一从直线慢慢变成折线/曲线 */ int LINESHOW_FROMLINE /** * 从左上角 放大 */ int LINESHOW_FROMCORNER /** * 水波 方式展开 */ int LINESHOW_ASWAVE
setLineMode(@LineMode int lineMode) /** * 连接每一个点 */ int LINE_EVERYPOINT /** * 跳过 0 断开 */ int LINE_JUMP0 /** * 跳过 0 用虚线链接 */ int LINE_DASH_0
setNormalColor(@ColorInt int normalColor) setPaintShaderColors(@ColorInt int... colors) setShaderAreaColors(@ColorInt int... colors)
setSelected(int selected) setSelectedMode(@SelectedMode int selectedMode)
aniChangeData(ListjchartList)
Todo
LicenseCopyright 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 at http://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.