wjc
2024-12-04 23d38b1e7374c20698702b6ab3feb1e92e82c4d3
app/src/main/java/com/hdl/photovoltaic/ui/home/aachart/BasicChartComposer.java
@@ -25,7 +25,7 @@
                .backgroundColor("#EDEFF2")
//                .backgroundColor("#4b2b7f")
                .dataLabelsEnabled(false)
                .yAxisGridLineWidth(0.5)
//                .yAxisGridLineWidth(0.5)
                .touchEventEnabled(true);
    }
@@ -55,7 +55,7 @@
//                .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")
                .backgroundColor("#333738")
                .legendEnabled(false)
                .markerRadius(0)
//                .markerSymbol(AAChartSymbolType.Circle)
@@ -86,11 +86,11 @@
                .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的话看不到区域背景
                .tooltip(aaTooltip)
//                .tooltip(aaTooltip)
                .data(data);
//        AASeriesElement element2 = new AASeriesElement()
@@ -105,6 +105,8 @@
                .chartType(AAChartType.Area)
                .categories(categories)
                .zoomType(AAChartZoomType.None)//手势缩放
                .yAxisGridLineWidth(0.15)
                .xAxisVisible(false)
//                .yAxisMax(100)
                .yAxisMin(0)
                .titleStyle(AAStyle.style("#66FFFFFF", 12))//坐标轴字体颜色