MCPcopy Create free account
hub / github.com/apache/echarts / getDefaultColorKey

Function getDefaultColorKey

src/visual/style.ts:52–63  ·  view source on GitHub ↗
(seriesModel: SeriesModel, stylePath: string)

Source from the content-addressed store, hash-verified

50}
51
52function getDefaultColorKey(seriesModel: SeriesModel, stylePath: string): 'stroke' | 'fill' {
53 // return defaultColorKey[stylePath] ||
54 const colorKey = seriesModel.visualDrawType
55 || defaultColorKey[stylePath as 'itemStyle' | 'lineStyle'];
56
57 if (!colorKey) {
58 console.warn(`Unknown style type '${stylePath}'.`);
59 return 'fill';
60 }
61
62 return colorKey;
63}
64
65type ColorCallback = (params: CallbackDataParams) => ZRColor;
66

Callers 2

resetFunction · 0.85
overallResetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected