(data, payload, state)
| 23053 | } |
| 23054 | |
| 23055 | function toggleHighlight(data, payload, state) { |
| 23056 | var dataIndex = queryDataIndex(data, payload); |
| 23057 | var highlightDigit = payload && payload.highlightKey != null ? getHighlightDigit(payload.highlightKey) : null; |
| 23058 | |
| 23059 | if (dataIndex != null) { |
| 23060 | each(normalizeToArray(dataIndex), function (dataIdx) { |
| 23061 | elSetState(data.getItemGraphicEl(dataIdx), state, highlightDigit); |
| 23062 | }); |
| 23063 | } else { |
| 23064 | data.eachItemGraphicEl(function (el) { |
| 23065 | elSetState(el, state, highlightDigit); |
| 23066 | }); |
| 23067 | } |
| 23068 | } |
| 23069 | |
| 23070 | enableClassExtend(ChartView, ['dispose']); |
| 23071 | enableClassManagement(ChartView); |
no test coverage detected
searching dependent graphs…