| | |
| | | |
| | | /** |
| | | * ------------------------------------------------------------------------------- |
| | | * |
| | | * <p> |
| | | * 🌕 🌖 🌗 🌘 ❀❀❀ WARM TIPS!!! ❀❀❀ 🌑 🌒 🌓 🌔 |
| | | * |
| | | * <p> |
| | | * Please contact me on GitHub,if there are any problems encountered in use. |
| | | * GitHub Issues : https://github.com/AAChartModel/AAChartCore/issues |
| | | * ------------------------------------------------------------------------------- |
| | |
| | | * StackOverflow : https://stackoverflow.com/users/7842508/codeforu |
| | | * JianShu : http://www.jianshu.com/u/f1e6753d4254 |
| | | * SegmentFault : https://segmentfault.com/u/huanghunbieguan |
| | | * |
| | | * <p> |
| | | * ------------------------------------------------------------------------------- |
| | | |
| | | */ |
| | | |
| | | |
| | |
| | | Boolean aaXAxisLabelsEnabled = aaChartModel.xAxisLabelsEnabled; |
| | | AALabels aaXAxisLabels = new AALabels() |
| | | .enabled(aaXAxisLabelsEnabled);//设置 x 轴是否显示文字 |
| | | |
| | | if (aaXAxisLabelsEnabled) { |
| | | aaXAxisLabels.style(new AAStyle() |
| | | .color(aaChartModel.axesTextColor)); |
| | | .color(aaChartModel.axesTextColor) |
| | | ); |
| | | } |
| | | |
| | | AAXAxis aaXAxis = new AAXAxis() |
| | | .labels(aaXAxisLabels) //设置 x 轴是否显示文字 |
| | | .reversed(aaChartModel.xAxisReversed) |
| | | .gridLineWidth(aaChartModel.xAxisGridLineWidth) //x轴网格线宽度 |
| | | .gridLineColor(aaChartModel.xAxisGridLineColor) //x轴网格线宽度 |
| | | .categories(aaChartModel.categories) |
| | | .visible(aaChartModel.xAxisVisible) //x轴是否可见 |
| | | .tickInterval(aaChartModel.xAxisTickInterval);//x轴坐标点间隔数 |
| | | .tickInterval(aaChartModel.xAxisTickInterval)//x轴坐标点间隔数 |
| | | .lineColor(aaChartModel.xAxisColor) // 设置 X 轴轴线颜色为红色(十六进制颜色值) |
| | | .lineWidth(aaChartModel.xAxisLineWidth); |
| | | |
| | | aaOptions.xAxis(aaXAxis); |
| | | } |
| | |
| | | .allowDecimals(aaChartModel.yAxisAllowDecimals) //是否允许显示小数 |
| | | .reversed(aaChartModel.yAxisReversed) |
| | | .gridLineWidth(aaChartModel.yAxisGridLineWidth) //y轴网格线宽度 |
| | | .gridLineColor(aaChartModel.yAxisGridLineColor)//y轴网格线颜色 |
| | | .title(new AATitle() |
| | | .text(aaChartModel.yAxisTitle) |
| | | .style(new AAStyle() |