@@ -122,6 +122,7 @@ class ChartSampleProvider: NSObject {
122122 //遍历 originalItems 数组,将其中的每个 AAChartModel 实例转化为 AAOptions 实例
123123 let finalItems = originalItems. map { ( aaChartModel) -> AAOptions in
124124 let aaOptions = aaChartModel. aa_toAAOptions ( )
125+ // aaOptions.chart?.polar(true)
125126 return aaOptions
126127 }
127128
@@ -130,7 +131,7 @@ class ChartSampleProvider: NSObject {
130131
131132
132133 static func aaOptionsItems( ) -> [ AAOptions ] {
133- return [
134+ let originalItems = [
134135 XAxisYAxisTypeOptionsComposer . datatimeTypeLineAndColumnMixedChart ( ) ,
135136 MixedTypesChartOptionsComposer . columnrangeAndScatterMixedTypesChart ( ) ,
136137 MixedTypesChartOptionsComposer . invertedColumnrangeAndScatterMixedTypesChart ( ) ,
@@ -249,11 +250,20 @@ class ChartSampleProvider: NSObject {
249250 DrawChartWithAAOptionsVC . configurePieChartWithSpecialStyleLegend ( ) , //自定义饼图的 legend 为特殊样式
250251 DrawChartWithAAOptionsVC . disableAnimationForChart ( ) , //禁用图表渲染动画
251252 ]
253+
254+ //遍历 originalItems 数组,将其中的每个 AAChartModel 实例转化为 AAOptions 实例
255+ let finalItems = originalItems. map { ( aaOptions) -> AAOptions in
256+ let aaOptions = aaOptions
257+ // aaOptions.chart?.polar(true)
258+ return aaOptions
259+ }
260+
261+ return finalItems
252262 }
253263
254264
255265 static func officalChartSampleItems( ) -> [ AAOptions ] {
256- return [
266+ let originalItems = [
257267 AreaChartOptionsComposer . basicAreaChart ( ) , //基础面积图
258268 AreaChartOptionsComposer . areaWithNegativeValuesChart ( ) , //带有负值的面积图
259269 AreaChartOptionsComposer . stackedAreaChart ( ) , //堆积面积图
@@ -283,6 +293,15 @@ class ChartSampleProvider: NSObject {
283293 PieChartOptionsComposer . basicPieChartWithMonochromeColor ( ) , //带有单色的基本饼状图
284294 PieChartOptionsComposer . customPieChartTitlePosition ( ) , //自定义饼状图标题位置
285295 ]
296+
297+ //遍历 originalItems 数组,将其中的每个 AAChartModel 实例转化为 AAOptions 实例
298+ let finalItems = originalItems. map { ( aaOptions) -> AAOptions in
299+ let aaOptions = aaOptions
300+ // aaOptions.chart?.polar(true)
301+ return aaOptions
302+ }
303+
304+ return finalItems
286305 }
287306
288307
0 commit comments