mac
2024-04-28 b1303ee6ba15d8202f7fe95037267feaa4520fc5
app/src/main/java/com/hdl/photovoltaic/ui/home/BasicChartComposer.java
@@ -18,7 +18,7 @@
public class BasicChartComposer {
    public static AAChartModel configureBasicOptions() {
        return new AAChartModel()
                .backgroundColor("#ffffff")
                .backgroundColor("#EDEFF2")
//                .backgroundColor("#4b2b7f")
                .dataLabelsEnabled(false)
                .yAxisGridLineWidth(1)
@@ -34,7 +34,7 @@
        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)
@@ -51,6 +51,11 @@
//                .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});
@@ -113,8 +118,7 @@
//                .markerSymbol(AAChartSymbolType.Circle)
                .tooltipValueSuffix("Kw.h")
//                .colorsTheme(colorsArr)
                .legendEnabled(false)
                ;
                .legendEnabled(false);
        if (chartType.equals(AAChartType.Areaspline)) {