Răsfoiți Sursa

Add doubleLayerHalfPieChart sample

An An 2 ani în urmă
părinte
comite
deabad1f3b

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

@@ -49,6 +49,7 @@ import com.github.aachartmodel.aainfographics.demo.chartcomposer.ChartOptionsCom
 import com.github.aachartmodel.aainfographics.demo.chartcomposer.ChartOptionsComposer.customChartLegendStyle
 import com.github.aachartmodel.aainfographics.demo.chartcomposer.ChartOptionsComposer.customLineChartDataLabelsFormat
 import com.github.aachartmodel.aainfographics.demo.chartcomposer.ChartOptionsComposer.customXAxisCrosshairStyle
+import com.github.aachartmodel.aainfographics.demo.chartcomposer.ChartOptionsComposer.doubleLayerHalfPieChart
 import com.github.aachartmodel.aainfographics.demo.chartcomposer.ChartOptionsComposer.gaugeChartWithPlotBand
 import com.github.aachartmodel.aainfographics.demo.chartcomposer.ChartOptionsComposer.simpleGaugeChart
 
@@ -88,6 +89,7 @@ class DrawChartWithAAOptionsActivity : AppCompatActivity() {
             "customAreaChartTooltipStyleLikeHTMLTable" -> return customAreaChartTooltipStyleLikeHTMLTable()
             "simpleGaugeChart" -> return simpleGaugeChart()
             "gaugeChartWithPlotBand" -> return gaugeChartWithPlotBand()
+            "doubleLayerHalfPieChart" -> return doubleLayerHalfPieChart()
         }
         return configureAAPlotBandsForChart()
     }

+ 4 - 2
sample/src/main/java/com/github/aachartmodel/aainfographics/demo/basiccontent/MainActivity.kt

@@ -108,7 +108,8 @@ class MainActivity : AppCompatActivity() {
                 "configureDoubleYAxesMarketDepthChart",
                 "customAreaChartTooltipStyleLikeHTMLTable",
                 "simpleGaugeChart",
-                "gaugeChartWithPlotBand"
+                "gaugeChartWithPlotBand",
+                "doubleLayerHalfPieChart",
             ), arrayOf(
                 "Column Chart---柱形图",
                 "Bar Chart---条形图",
@@ -258,7 +259,8 @@ class MainActivity : AppCompatActivity() {
                 "configureDoubleYAxesMarketDepthChart",
                 "customAreaChartTooltipStyleLikeHTMLTable",
                 "simpleGaugeChart",
-                "gaugeChartWithPlotBand"
+                "gaugeChartWithPlotBand",
+                "doubleLayerHalfPieChart"
             ), arrayOf( /*即时刷新📈📊图表数据*/
                 AAChartType.Column.value,
                 AAChartType.Bar.value,