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

Function getColor

src/chart/candlestick/candlestickVisual.ts:32–36  ·  view source on GitHub ↗
(sign: number, model: Model<Pick<CandlestickDataItemOption, 'itemStyle'>>)

Source from the content-addressed store, hash-verified

30const negativeColorQuery = ['itemStyle', 'color0'] as const;
31
32export function getColor(sign: number, model: Model<Pick<CandlestickDataItemOption, 'itemStyle'>>) {
33 return model.get(
34 sign > 0 ? positiveColorQuery : negativeColorQuery
35 );
36}
37
38export function getBorderColor(sign: number, model: Model<Pick<CandlestickDataItemOption, 'itemStyle'>>) {
39 return model.get(

Callers 6

setBoxCommonFunction · 0.90
setLargeStyleFunction · 0.90
progressFunction · 0.85
_renderTicksMethod · 0.85
_renderPointerMethod · 0.85
_renderTitleAndDetailMethod · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…