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

Function getVisual

test/ut/spec/component/visualMap/setOption.test.ts:262–265  ·  view source on GitHub ↗
(idx: number, visualType: 'color' | 'opacity' | 'symbol')

Source from the content-addressed store, hash-verified

260 const ecModel = getECModel(chart);
261
262 function getVisual(idx: number, visualType: 'color' | 'opacity' | 'symbol') {
263 return (ecModel.getComponent('visualMap', idx) as VisualMapModel)
264 .targetVisuals.inRange[visualType].option.visual;
265 }
266
267 function makeCategoryVisual(...args: unknown[]) {
268 const CATEGORY_DEFAULT_VISUAL_INDEX = -1;

Callers 1

setOption.test.tsFile · 0.70

Calls 1

getComponentMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…