代码拉取完成,页面将自动刷新
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
dependencies {
implementation 'com.github.yhongm:yhongm_chart:master'
}
<com.yhongm.chart_core.BarChartView
android:layout_centerInParent="true"
custom:gradientStartColor="#ffa666"
custom:gradientEndColor="#e57a2e"
custom:lineColor="#333333"
custom:chartColor="#666666"
custom:textColor="#666666"
custom:maxValue="2500"
custom:unit="单位"
custom:horizentalLineNum="2"
custom:barWidth="16"
android:id="@+id/bar_chart"
android:layout_width="300dp"
android:layout_height="200dp">
</com.yhongm.chart_core.BarChartView>
<com.yhongm.chart_core.CurveChartView
custom:curveOrBroken="false"
custom:max="2500"
custom:scaleColor="#666666"
custom:curveLineColor="#ff5500"
custom:smartCircleColor="#ff5500"
custom:smartFillColor="#ffffff"
android:layout_centerInParent="true"
android:id="@+id/curve_chart"
android:layout_width="300dp"
android:layout_height="200dp">
</com.yhongm.chart_core.CurveChartView>
<com.yhongm.chart_core.PolyLineView
android:id="@+id/polyline_view"
android:layout_centerHorizontal="true"
android:layout_alignParentBottom="true"
android:layout_width="300dp"
android:layout_height="200dp" />
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。