Skip to content

基于MPAndroidChart封装,实现自适应MarkView,自定义Chart解决滑动冲突等

Notifications You must be signed in to change notification settings

zhangi789/MPAndroidChart

Repository files navigation

banner

简介

声明:基于PhilJay MPAndroidChart:v3.0.3版本基础上封装,使用方法不变

实现特殊功能:添加不同类,与原框架不冲突(不需要集成原框架)

封装的原因:

1:双或单平滑曲线(双折线图)和MarkView实现
2:自定义1MPAndroidChart滑动冲突解决
3:饼状图实现和文字重合问题解决
4:柱状图实现及X轴文字不显示问题和柱状图上显示文字
5: 天一方蓝 - 天一方蓝
6:以上功能封装完毕,1,2条在本项目已经实现,3,4请参考5 点击查看demo
7:Apk体验请下拉到底

集成

Gradle

  • Project level build.gradle
allprojects {
    repositories {
        maven { url 'https://jitpack.io' }
    }
}
  • App level build.gradle
dependencies {
    implementation 'com.github.zhangi789:MPAndroidChart:v3.0.3'
}

文献

See the documentation for examples and general use of MPAndroidChart.

See the javadocs for more advanced documentation.



出现问题 & 解决方式 :思考:

This repository's issue tracker is only for bugs and feature requests. The maintainers ask that you refrain from asking questions about how to use MPAndroidChart through the issue tracker.

Please read the documentation first, then ask all your questions on stackoverflow.com for the fastest answer.


More Examples 👍


LineChart (with legend, simple design)

alt tag

LineChart (with legend, simple design)

alt tag

LineChart (cubic lines)

alt tag

LineChart (gradient fill)

alt tag

BarChart (with legend, simple design)

alt tag

BarChart (grouped DataSets)

alt tag

Horizontal-BarChart

alt tag

Combined-Chart (bar- and linechart in this case)

alt tag

PieChart (with selection, ...)

alt tag

ScatterChart (with squares, triangles, circles, ... and more)

alt tag

CandleStickChart (for financial data)

alt tag

BubbleChart (area covered by bubbles indicates the yValue)

alt tag

RadarChart (spider web chart)

alt tag


License 📄

Copyright 2018 Philipp Jahoda

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.


特别感谢:心:

These people rock!

About

基于MPAndroidChart封装,实现自适应MarkView,自定义Chart解决滑动冲突等

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages