|
3 | 3 | 
|
4 | 4 | [](https://jitpack.io/#org.bitbucket.User/Repo)
|
5 | 5 |
|
6 |
| - |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
7 | 12 |
|
8 | 13 | 2. [Gradle](https://github.com/mychoices/Jgraph/blob/master/README.md#gradle)
|
9 | 14 | 3. [Demo](https://github.com/mychoices/Jgraph/blob/master/README.md#demo)
|
@@ -38,27 +43,131 @@ demo下载地址
|
38 | 43 |
|
39 | 44 | ## GraphStyle
|
40 | 45 |
|
| 46 | +``` |
| 47 | +setGraphStyle(@GraphStyle int graphStyle) //柱状图 和 折线图 |
| 48 | +``` |
| 49 | + |
41 | 50 | ## Scrollable
|
42 |
| - |
| 51 | +``` |
| 52 | +setScrollAble(boolean ) |
| 53 | +``` |
| 54 | + |
43 | 55 | ## 纵轴
|
44 | 56 |
|
| 57 | +``` |
| 58 | +setYaxisValues(@NonNull String... showMsg) |
| 59 | +setYaxisValues(int max, int showYnum) |
| 60 | +setYaxisValues(int min, int max, int showYnum) |
| 61 | +``` |
| 62 | + |
| 63 | + |
45 | 64 | ## BarShowStyle
|
| 65 | +``` |
| 66 | +setBarShowStyle(@BarShowStyle int barShowStyle) |
| 67 | +/** |
| 68 | + * 水波 方式生长 |
| 69 | + */ |
| 70 | +int BARSHOW_ASWAVE |
| 71 | +/** |
| 72 | + * 线条 一从直线慢慢变成折线/曲线 |
| 73 | + */ |
| 74 | +int BARSHOW_FROMLINE |
| 75 | +/** |
| 76 | + * 柱形条 由某个往外扩散 |
| 77 | + */ |
| 78 | +int BARSHOW_EXPAND |
| 79 | +
|
| 80 | +/** |
| 81 | + * 一段一段显示 |
| 82 | + */ |
| 83 | +int BARSHOW_SECTION |
| 84 | +``` |
| 85 | + |
46 | 86 |
|
47 | 87 | ## barcolor
|
48 |
| - |
49 |
| - |
50 |
| -## LineShowStyle |
51 |
| - |
| 88 | +``` |
| 89 | +setNormalColor(@ColorInt int normalColor) |
| 90 | +setPaintShaderColors(@ColorInt int... colors) |
| 91 | +``` |
| 92 | + |
52 | 93 | ## LineStyle
|
53 |
| - |
| 94 | +``` |
| 95 | +setLineStyle(@LineStyle int lineStyle) |
| 96 | +/** |
| 97 | + * 折线 |
| 98 | + */ |
| 99 | +int LINE_BROKEN = 0; |
| 100 | +/** |
| 101 | + * 曲线 |
| 102 | + */ |
| 103 | +int LINE_CURVE = 1; |
| 104 | +``` |
| 105 | + |
| 106 | +## LineShowStyle |
| 107 | +``` |
| 108 | +setLineShowStyle(@LineShowStyle int lineShowStyle) |
| 109 | +
|
| 110 | +/** |
| 111 | + * 线条从无到有 慢慢出现 |
| 112 | + */ |
| 113 | +int LINESHOW_DRAWING |
| 114 | +/** |
| 115 | + * 线条 一段一段显示 |
| 116 | + */ |
| 117 | +int LINESHOW_SECTION |
| 118 | +/** |
| 119 | + * 线条 一从直线慢慢变成折线/曲线 |
| 120 | + */ |
| 121 | +int LINESHOW_FROMLINE |
| 122 | +
|
| 123 | +/** |
| 124 | + * 从左上角 放大 |
| 125 | + */ |
| 126 | +int LINESHOW_FROMCORNER |
| 127 | +/** |
| 128 | + * 水波 方式展开 |
| 129 | + */ |
| 130 | +int LINESHOW_ASWAVE |
| 131 | +``` |
| 132 | + |
54 | 133 | ## LineMode
|
| 134 | +``` |
| 135 | +setLineMode(@LineMode int lineMode) |
| 136 | +/** |
| 137 | + * 连接每一个点 |
| 138 | + */ |
| 139 | +int LINE_EVERYPOINT |
| 140 | +/** |
| 141 | + * 跳过0 断开 |
| 142 | + */ |
| 143 | +int LINE_JUMP0 |
| 144 | +
|
| 145 | +/** |
| 146 | + * 跳过0 用虚线链接 |
| 147 | + */ |
| 148 | +int LINE_DASH_0 |
| 149 | +``` |
| 150 | + |
55 | 151 |
|
56 | 152 | ## linecolor
|
57 |
| - |
| 153 | +``` |
| 154 | +setNormalColor(@ColorInt int normalColor) |
| 155 | +setPaintShaderColors(@ColorInt int... colors) |
| 156 | +setShaderAreaColors(@ColorInt int... colors) |
| 157 | +``` |
| 158 | + |
58 | 159 | ## select
|
| 160 | +``` |
| 161 | +setSelected(int selected) |
| 162 | +setSelectedMode(@SelectedMode int selectedMode) |
| 163 | +``` |
| 164 | + |
59 | 165 |
|
60 | 166 | # datachange
|
61 |
| - |
| 167 | +``` |
| 168 | +aniChangeData(List<Jchart> jchartList) |
| 169 | +``` |
| 170 | + |
62 | 171 |
|
63 | 172 | # Versions
|
64 | 173 |
|
|
0 commit comments