MCPcopy Index your code
hub / github.com/5hmlA/Jgraph

github.com/5hmlA/Jgraph @16.07.30

Chat with this repo
repository ↗ · DeepWiki ↗ · release 16.07.30 ↗ · + Follow
774 symbols 1,592 edges 35 files 269 documented · 35%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Jgraph

License Release

  1. Gradle
  2. Demo
  3. Use Guide
    1. 图表风格
    2. 滚动
    3. 纵轴
    4. 柱-动画
    5. 柱-颜色
    6. 线-动画
    7. 线-风格
    8. 线-断0
    9. 线-颜色
    10. 选中
    11. 切换数据
  4. Versions
  5. Todo
  6. License

Gradle

dependencies {
    compile 'yun.jonas.jang:mchart:1.1.1'
}

DEMO

demo下载地址

Use Guide


GraphStyle

setGraphStyle(@GraphStyle int graphStyle) //柱状图 和 折线图

Scrollable

setScrollAble(boolean )

纵轴

setYaxisValues(@NonNull String... showMsg)
setYaxisValues(int max, int showYnum)
setYaxisValues(int min, int max, int showYnum)

BarShowStyle

setBarShowStyle(@BarShowStyle int barShowStyle)
/**
 * 水波 方式生长
 */
int BARSHOW_ASWAVE 
/**
 * 线条 一从直线慢慢变成折线/曲线
 */
int BARSHOW_FROMLINE 
/**
 * 柱形条 由某个往外扩散
 */
int BARSHOW_EXPAND 

/**
 * 一段一段显示
 */
int BARSHOW_SECTION 

barcolor

setNormalColor(@ColorInt int normalColor)
setPaintShaderColors(@ColorInt int... colors)

LineStyle

setLineStyle(@LineStyle int lineStyle)
/**
 * 折线
 */
int LINE_BROKEN = 0;
/**
 * 曲线
 */
int LINE_CURVE = 1;

LineShowStyle

setLineShowStyle(@LineShowStyle int lineShowStyle)

/**
 * 线条从无到有 慢慢出现
 */
int LINESHOW_DRAWING 
/**
 * 线条 一段一段显示
 */
int LINESHOW_SECTION 
/**
 * 线条 一从直线慢慢变成折线/曲线
 */
int LINESHOW_FROMLINE 

/**
 * 从左上角 放大
 */
int LINESHOW_FROMCORNER 
/**
 * 水波 方式展开
 */
int LINESHOW_ASWAVE 

LineMode

setLineMode(@LineMode int lineMode)
/**
 * 连接每一个点
 */
int LINE_EVERYPOINT 
/**
 * 跳过0  断开
 */
int LINE_JUMP0 

/**
 * 跳过0 用虚线链接
 */
int LINE_DASH_0 

linecolor

setNormalColor(@ColorInt int normalColor)
setPaintShaderColors(@ColorInt int... colors)
setShaderAreaColors(@ColorInt int... colors)

select

setSelected(int selected)
setSelectedMode(@SelectedMode int selectedMode)

datachange

aniChangeData(List<Jchart> jchartList)

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 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.

Extension points exported contracts — how you extend this code

IProgress (Interface)
@author yun. @date 2016/6/8 @des [进度控件的基类 封装了一些通用的方法] @since [https://github.com/mychoices] <a href="https://github.c [4 …
jgraph/src/main/java/com/jonas/jgraph/inter/IProgress.java
IChart (Interface)
@author yun. @date 2016/6/8 @des [一句话描述] @since [https://github.com/mychoices] <a href="https://github.com/mychoices" [2 …
jgraph/src/main/java/com/jonas/jgraph/inter/IChart.java
OnGraphItemListener (Interface)
@author yun. @date 2016/7/17 @des [一句话描述] @since [https://github.com/mychoices] <a href="https://github.com/mychoices
jgraph/src/main/java/com/jonas/jgraph/inter/OnGraphItemListener.java
OnItemPieClickListener (Interface)
饼图点击监听 @author Refuse
jgraph/src/main/java/com/jonas/jgraph/graph/pie/JPieView.java
OnSpecialPieListener (Interface)
特殊角 监听 @author Refuse
jgraph/src/main/java/com/jonas/jgraph/graph/pie/JPieView.java

Core symbols most depended-on inside this repo

setColor
called by 83
jgraph/src/main/java/com/jonas/jgraph/models/Jball.java
getMidPointF
called by 55
jgraph/src/main/java/com/jonas/jgraph/models/Jchart.java
getRectF
called by 40
jgraph/src/main/java/com/jonas/jgraph/models/NExcel.java
getHeight
called by 30
jgraph/src/main/java/com/jonas/jgraph/models/Jchart.java
getStart
called by 26
jgraph/src/main/java/com/jonas/jgraph/models/Jchart.java
dip2px
called by 19
jgraph/src/main/java/com/jonas/jgraph/utils/MathHelper.java
getXmsg
called by 17
jgraph/src/main/java/com/jonas/jgraph/models/Jchart.java
dip2px
called by 16
jgraph/src/main/java/com/jonas/jgraph/graph/JChart.java

Shape

Method 727
Class 33
Interface 13
Enum 1

Languages

Java100%

Modules by API surface

jgraph/src/main/java/com/jonas/jgraph/graph/NChart.java84 symbols
jgraph/src/main/java/com/jonas/jgraph/inter/BaseGraph.java66 symbols
jgraph/src/main/java/com/jonas/jgraph/graph/pie/JPieView.java61 symbols
jgraph/src/main/java/com/jonas/jgraph/graph/JcoolGraph.java55 symbols
jgraph/src/main/java/com/jonas/jgraph/graph/JChart.java53 symbols
jgraph/src/main/java/com/jonas/jgraph/graph/MultiGraph.java51 symbols
jgraph/src/main/java/com/jonas/jgraph/models/Jchart.java44 symbols
jgraph/src/main/java/com/jonas/jgraph/graph/pie/WarmLine.java37 symbols
jgraph/src/main/java/com/jonas/jgraph/progress/JWaveBallProg.java30 symbols
jgraph/src/main/java/com/jonas/jgraph/models/NExcel.java28 symbols
jgraph/src/main/java/com/jonas/jgraph/progress/AniBallProgress.java27 symbols
jgraph/src/main/java/com/jonas/jgraph/graph/LineChar.java26 symbols

For agents

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

⬇ download graph artifact