Przeglądaj źródła

Remove useless title and subtitle setter

An An 2 lat temu
rodzic
commit
81fbe8cd36

+ 0 - 2
sample/src/main/java/com/github/aachartmodel/aainfographics/demo/chartcomposer/ChartOptionsComposer.kt

@@ -1125,8 +1125,6 @@ function () {
 
         val aaChartModel = AAChartModel()
             .chartType(AAChartType.Areaspline) //图表类型
-            .title("") //图表主标题
-            .subtitle("") //图表副标题
             .colorsTheme(arrayOf("#04d69f", "#1e90ff", "#ef476f", "#ffd066"))
             .stacking(AAChartStackingType.Normal)
             .yAxisTitle("") //设置 Y 轴标题

+ 0 - 6
sample/src/main/java/com/github/aachartmodel/aainfographics/demo/chartcomposer/CustomTooltipComposer.kt

@@ -153,8 +153,6 @@ function () {
     fun customAreaChartTooltipStyleWithColorfulHtmlLabels(): AAOptions {
         val aaChartModel = AAChartModel()
             .chartType(AAChartType.Areaspline)//图形类型
-            .title("")//图表主标题
-            .subtitle("")//图表副标题
             .markerSymbolStyle(AAChartSymbolStyleType.BorderBlank)//折线连接点样式为外边缘空白
             .dataLabelsEnabled(false)
             .colorsTheme(arrayOf("#04d69f", "#1e90ff", "#ef476f", "#ffd066"))
@@ -304,8 +302,6 @@ function () {
     fun customYAxisLabels(): AAOptions {
         val aaChartModel = AAChartModel()
             .chartType(AAChartType.Line)//图形类型
-            .title("")//图表主标题
-            .subtitle("")//图表副标题
             .markerSymbolStyle(AAChartSymbolStyleType.BorderBlank)//折线连接点样式为外边缘空白
             .dataLabelsEnabled(false)
             .colorsTheme(arrayOf("#04d69f", "#1e90ff", "#ef476f", "#ffd066"))
@@ -346,8 +342,6 @@ function () {
     fun customYAxisLabels2(): AAOptions {
         val aaChartModel = AAChartModel()
             .chartType(AAChartType.Line)//图形类型
-            .title("")//图表主标题
-            .subtitle("")//图表副标题
             .markerSymbolStyle(AAChartSymbolStyleType.BorderBlank)//折线连接点样式为外边缘空白
             .dataLabelsEnabled(false)
             .colorsTheme(arrayOf("#04d69f", "#1e90ff", "#ef476f", "#ffd066"))

+ 0 - 2
sample/src/main/java/com/github/aachartmodel/aainfographics/demo/chartcomposer/MixedChartComposer.kt

@@ -122,8 +122,6 @@ object MixedChartComposer {
     fun configureColumnrangeMixedLineChart(): AAChartModel {
         return AAChartModel()
             .colorsTheme(arrayOf("#1e90ff", "#EA007B", "#49C1B6", "#FDC20A", "#F78320", "#068E81"))//主题颜色数组
-            .title("")//图形标题
-            .subtitle("")//图形副标题
             .chartType(AAChartType.Line)
             .dataLabelsEnabled(false)
             .markerSymbolStyle(AAChartSymbolStyleType.BorderBlank)