|
7 | 7 | #import "AAChartKit.h" |
8 | 8 | #import "AADOMRectModel.h" |
9 | 9 |
|
10 | | -static NSString *kUserContentMessageNameChartClicked = @"click"; |
11 | | -static NSString *kUserContentMessageNameChartMoveOver = @"moveOver"; |
12 | | -static NSString *kUserContentMessageNameChartDefaultSelected = @"defaultSelected"; |
| 10 | +static NSString * const kUserContentMessageNameChartClicked = @"click"; |
| 11 | +static NSString * const kUserContentMessageNameChartMoveOver = @"moveOver"; |
| 12 | +static NSString * const kUserContentMessageNameChartDefaultSelected = @"defaultSelected"; |
13 | 13 |
|
14 | 14 | @interface CustomWeakProxy : NSProxy |
15 | 15 |
|
@@ -143,18 +143,18 @@ - (NSString *)configureClickOrMoveOverEventJSEventWithUserContentMessageName:(NS |
143 | 143 | - (AAOptions *)columnChartWithCustomJSFunction { |
144 | 144 | AAOptions *aaOptions = [self areasplineChart].aa_toAAOptions; |
145 | 145 |
|
146 | | - //// 获取用户点击位置的代码逻辑, 参考: |
147 | | - //// * https://www.highcharts.com/forum/viewtopic.php?t=11983 |
148 | | - //// * https://developer.mozilla.org/zh-CN/docs/Web/API/Element/getBoundingClientRect |
| 146 | + // 获取用户点击位置的代码逻辑, 参考: |
| 147 | + // * https://www.highcharts.com/forum/viewtopic.php?t=11983 |
| 148 | + // * https://developer.mozilla.org/zh-CN/docs/Web/API/Element/getBoundingClientRect |
149 | 149 | // |
150 | | - //// JSON.stringify(), 参考: |
151 | | - //// * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify |
| 150 | + // JSON.stringify(), 参考: |
| 151 | + // * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify |
152 | 152 | aaOptions.plotOptions.series |
153 | 153 | .pointSet(AAPoint.new |
154 | | - .eventsSet(AAPointEvents.new |
155 | | - .clickSet([self configureClickOrMoveOverEventJSEventWithUserContentMessageName:kUserContentMessageNameChartClicked]) |
156 | | - .mouseOverSet([self configureClickOrMoveOverEventJSEventWithUserContentMessageName:kUserContentMessageNameChartMoveOver]) |
157 | | - )); |
| 154 | + .eventsSet(AAPointEvents.new |
| 155 | + .clickSet([self configureClickOrMoveOverEventJSEventWithUserContentMessageName:kUserContentMessageNameChartClicked]) |
| 156 | + .mouseOverSet([self configureClickOrMoveOverEventJSEventWithUserContentMessageName:kUserContentMessageNameChartMoveOver]) |
| 157 | + )); |
158 | 158 |
|
159 | 159 | //默认选中的位置索引 |
160 | 160 | NSInteger defaultSelectedIndex = 5; |
|
0 commit comments