| | |
| | | import java.util.ArrayList; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * 图表数据渲染 |
| | | */ |
| | | public class CustomStyleChartComposer { |
| | | |
| | | public static AAChartModel configureColorfulChart() { |
| | |
| | | AALinearGradientDirection.ToBottom, |
| | | stopsArr |
| | | ); |
| | | AATooltip aaTooltip = new AATooltip() |
| | | .enabled(true) |
| | | .valueDecimals(2); |
| | | return new AAChartModel() |
| | | .chartType(AAChartType.Column) |
| | | .backgroundColor("#EDEFF2") |
| | | .backgroundColor("#1C1C1E") |
| | | .titleStyle(AAStyle.style("#66FFFFFF", 12))//坐标轴字体颜色 |
| | | .colorsTheme(new String[]{"#38C494",}) |
| | | .categories(categories) |
| | | .yAxisGridLineWidth(0.10) |
| | | .xAxisVisible(true) |
| | | .xAxisLineWidth(0) |
| | | .xAxisLabelsEnabled(true) |
| | | .zoomType(AAChartZoomType.None) |
| | | .legendEnabled(false) |
| | |
| | | .name(tipSuspendName) |
| | | .data(data) |
| | | // .colorByPoint(true) |
| | | .tooltip(new AATooltip().style(new AAStyle().backgroundColor("#FFFFFF").fontSize(25))) |
| | | // .tooltip(aaTooltip) |
| | | |
| | | }); |
| | | } |