| | |
| | | import com.github.AAChartModel.AAChartCore.AAChartEnum.AAChartSymbolType; |
| | | import com.github.AAChartModel.AAChartCore.AAChartEnum.AAChartType; |
| | | import com.github.AAChartModel.AAChartCore.AAChartEnum.AAChartZoomType; |
| | | import com.github.AAChartModel.AAChartCore.AAOptionsModel.AAChart; |
| | | import com.github.AAChartModel.AAChartCore.AAOptionsModel.AAStyle; |
| | | import com.github.AAChartModel.AAChartCore.AAOptionsModel.AATitle; |
| | | import com.github.AAChartModel.AAChartCore.AAOptionsModel.AATooltip; |
| | | import com.github.AAChartModel.AAChartCore.AATools.AAColor; |
| | | import com.github.AAChartModel.AAChartCore.AATools.AAGradientColor; |
| | |
| | | .backgroundColor("#EDEFF2") |
| | | // .backgroundColor("#4b2b7f") |
| | | .dataLabelsEnabled(false) |
| | | .yAxisGridLineWidth(1) |
| | | .yAxisGridLineWidth(0.5) |
| | | .touchEventEnabled(true); |
| | | } |
| | | |
| | |
| | | AALinearGradientDirection.ToBottom, |
| | | "rgba(56,196,148,0.5)",//深粉色, alpha 透明度1 |
| | | "rgba(255,255,255,0)"//热情的粉红, alpha 透明度 0.1 |
| | | );//颜色字符串设置支持十六进制类型和 rgba 类型 |
| | | ); |
| | | //颜色字符串设置支持十六进制类型和 rgba 类型 |
| | | // AAStyle aaStyle = new AAStyle(); |
| | | // aaStyle.color("#FFFFFFFF"); |
| | | // aaStyle.background("#FF555859"); |
| | | |
| | | |
| | | AATooltip aaTooltip = new AATooltip() |
| | | .enabled(true) |
| | | .backgroundColor(AAColor.rgbaColor(51, 55, 56, 1f)) |
| | | .valueDecimals(2); |
| | | |
| | | AASeriesElement element1 = new AASeriesElement() |
| | | .name(tipSuspendName) |
| | | // .colorByPoint(true) |
| | |
| | | // .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("#EDEFF2") |
| | | .backgroundColor("#333738") |
| | | .legendEnabled(false) |
| | | .markerRadius(0) |
| | | // .markerSymbol(AAChartSymbolType.Circle) |
| | |
| | | .zoomType(AAChartZoomType.None)//手势缩放 |
| | | // .yAxisMax(100) |
| | | .yAxisMin(0) |
| | | .titleStyle(AAStyle.style("#66FFFFFF", 12))//坐标轴字体颜色 |
| | | // .axesTextColor("#FFFFFF")//背景颜色 |
| | | .series(new AASeriesElement[]{element1}); |
| | | } |
| | | |