MCPcopy
hub / github.com/apache/echarts / indexOfName

Method indexOfName

src/visual/LegendVisualProvider.ts:54–60  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

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.

Callers 1

containNameMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected