MCPcopy Index your code
hub / github.com/apache/echarts / getVisualFromData

Function getVisualFromData

src/visual/helper.ts:48–64  ·  view source on GitHub ↗
(data: SeriesData, key: string)

Source from the content-addressed store, hash-verified

46}
47
48export function getVisualFromData(data: SeriesData, key: string) {
49 switch (key) {
50 case 'color':
51 const style = data.getVisual('style');
52 return style[data.getVisual('drawType')];
53 case 'opacity':
54 return data.getVisual('style').opacity;
55 case 'symbol':
56 case 'symbolSize':
57 case 'liftZ':
58 return data.getVisual(key);
59 default:
60 if (__DEV__) {
61 console.warn(`Unknown visual type ${key}`);
62 }
63 }
64}
65
66export function setItemVisualFromData(data: SeriesData, dataIndex: number, key: string, value: any) {
67 switch (key) {

Callers 5

renderSeriesMethod · 0.90
renderSeriesMethod · 0.90
getColorVisualFunction · 0.90
getVisualMethod · 0.90

Calls 1

getVisualMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…