| | |
| | | public class BasicChartComposer { |
| | | public static AAChartModel configureBasicOptions() { |
| | | return new AAChartModel() |
| | | .backgroundColor("#ffffff") |
| | | .backgroundColor("#EDEFF2") |
| | | // .backgroundColor("#4b2b7f") |
| | | .dataLabelsEnabled(false) |
| | | .yAxisGridLineWidth(1) |
| | |
| | | AASeriesElement element1 = new AASeriesElement() |
| | | .name("Tokyo") |
| | | // .colorByPoint(true) |
| | | .color(AARgba(56,196,148,1.0f))//猩红色, alpha 透明度 1 |
| | | .color(AARgba(56, 196, 148, 1.0f))//猩红色, alpha 透明度 1 |
| | | .lineWidth(1.5) |
| | | // .borderColor(AARgba(255,255,255,1.0f)) |
| | | .fillColor(linearGradientColor) |
| | |
| | | // .data(new Object[]{3.9, 4.2, 5.7, 8.5, 11.9, 15.2, 17.0, 16.6, 14.2, 10.3, 6.6, 4.8}); |
| | | |
| | | return configureBasicOptions() |
| | | .backgroundColor("#EDEFF2") |
| | | .legendEnabled(false) |
| | | .markerRadius(0) |
| | | // .markerSymbol(AAChartSymbolType.Circle) |
| | | // .markerSymbolStyle(AAChartSymbolStyleType.Normal) |
| | | .chartType(AAChartType.Area) |
| | | .categories(new String[]{"一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"}) |
| | | .series(new AASeriesElement[]{element1}); |
| | |
| | | // .markerSymbol(AAChartSymbolType.Circle) |
| | | .tooltipValueSuffix("Kw.h") |
| | | // .colorsTheme(colorsArr) |
| | | .legendEnabled(false) |
| | | ; |
| | | .legendEnabled(false); |
| | | |
| | | |
| | | if (chartType.equals(AAChartType.Areaspline)) { |