(name: string)
| 52 | } |
| 53 | |
| 54 | indexOfName(name: string): number { |
| 55 | // Only get data when necessary. |
| 56 | // Because LegendVisualProvider constructor may be new in the stage that data is not prepared yet. |
| 57 | // Invoking Series#getData immediately will throw an error. |
| 58 | const dataWithEncodedVisual = this._getDataWithEncodedVisual(); |
| 59 | return dataWithEncodedVisual.indexOfName(name); |
| 60 | } |
| 61 | |
| 62 | getItemVisual(dataIndex: number, key: string): any { |
| 63 | // Get encoded visual properties from final filtered data. |