(option: Dictionary<any>)
| 78 | ]; |
| 79 | |
| 80 | function compatBarItemStyle(option: Dictionary<any>) { |
| 81 | const itemStyle = option && option.itemStyle; |
| 82 | if (itemStyle) { |
| 83 | for (let i = 0; i < BAR_ITEM_STYLE_MAP.length; i++) { |
| 84 | const oldName = BAR_ITEM_STYLE_MAP[i][1]; |
| 85 | const newName = BAR_ITEM_STYLE_MAP[i][0]; |
| 86 | if (itemStyle[oldName] != null) { |
| 87 | itemStyle[newName] = itemStyle[oldName]; |
| 88 | if (__DEV__) { |
| 89 | deprecateReplaceLog(oldName, newName); |
| 90 | } |
| 91 | } |
| 92 | } |
| 93 | } |
| 94 | } |
| 95 | |
| 96 | function compatPieLabel(option: Dictionary<any>) { |
| 97 | if (!option) { |
no test coverage detected
searching dependent graphs…