| | |
| | | public class BasicChartComposer { |
| | | public static AAChartModel configureBasicOptions() { |
| | | return new AAChartModel() |
| | | .backgroundColor("#EDEFF2") |
| | | .backgroundColor("#1C1C1E") |
| | | // .backgroundColor("#4b2b7f") |
| | | .dataLabelsEnabled(false) |
| | | // .yAxisGridLineWidth(0.5) |
| | |
| | | .name(tipSuspendName) |
| | | // .colorByPoint(true) |
| | | .color(AARgba(56, 196, 148, 1.0f))//猩红色, alpha 透明度 1 |
| | | // .lineWidth(1.5) |
| | | .lineWidth(1.5) |
| | | // .borderColor(AARgba(255,255,255,1.0f)) |
| | | .fillColor(linearGradientColor) |
| | | // .fillOpacity(0.5)//区域背景透明度,设置0的话看不到区域背景 |
| | |
| | | // .name("NewYork") |
| | | // .data(new Object[]{0.45, 0.43, 0.50, 0.55, 0.58, 0.62, 0.83, 0.39, 0.56, 0.67, 0.50, 0.34, 0.50, 0.67, 0.58, 0.29, 0.46, 0.23, 0.47, 0.46, 0.38, 0.56, 0.48, 0.36}); |
| | | return configureBasicOptions() |
| | | .backgroundColor("#333738") |
| | | .backgroundColor("#1C1C1E") |
| | | .legendEnabled(false) |
| | | .markerRadius(0) |
| | | // .markerSymbol(AAChartSymbolType.Circle) |
| | |
| | | .chartType(AAChartType.Area) |
| | | .categories(categories) |
| | | .zoomType(AAChartZoomType.None)//手势缩放 |
| | | .yAxisGridLineWidth(0.15) |
| | | .xAxisVisible(false) |
| | | .yAxisGridLineWidth(0.10) |
| | | .yAxisAllowDecimals(true) |
| | | .xAxisVisible(true) |
| | | // .yAxisMax(100) |
| | | .yAxisMin(0) |
| | | .titleStyle(AAStyle.style("#66FFFFFF", 12))//坐标轴字体颜色 |