Jgraph
#Gradle
allprojects {
repositories {
...
maven {
url "https://jitpack.io"
}
}
}
dependencies {
compile 'com.github.mychoices:Jgraph:v1.2'
}
#DEMO
#User Guide
### ?????
<attr name="graphstyle" format="enum">
<enum name="bar" value="0"/>
<enum name="line" value="1"/> </attr> <attr name="scrollable" format="boolean"/>
<attr name="visiblenums" format="integer"/> <attr name="showymsg" format="boolean"/> <attr name="normolcolor" format="color"/> <attr name="activationcolor" format="color"/> <attr name="linestyle" format="enum">
<!--??-->
<enum name="broken" value="0"/>
<!--??-->
<enum name="curve" value="1"/> </attr> <attr name="linemode" format="enum">
<!--??????-->
<enum name="everypoint" value="1"/>
<!--??0??-->
<enum name="jump0" value="2"/>
<!--???0??????-->
<enum name="dash0" value="3"/> </attr> <attr name="linewidth" format="dimension"/> <attr name="lineshowstyle" format="enum">
<enum name="drawing" value="0"/>
<enum name="section" value="1"/>
<enum name="fromline" value="2"/>
<enum name="fromcorner" value="3"/>
<enum name="aswave" value="4"/> </attr>
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.