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

Function getDataItemValue

src/util/model.ts:151–156  ·  view source on GitHub ↗
(
    dataItem: OptionDataItem
)

Source from the content-addressed store, hash-verified

149 * This helper method retrieves value from data.
150 */
151export function getDataItemValue(
152 dataItem: OptionDataItem
153): OptionDataValue | OptionDataValue[] {
154 return (isObject(dataItem) && !isArray(dataItem) && !(dataItem instanceof Date))
155 ? (dataItem as Dictionary<OptionDataValue>).value : dataItem;
156}
157
158/**
159 * data could be [12, 2323, {value: 223}, [1221, 23], {value: [2, 23]}]

Callers 6

_initDataMethod · 0.90
dataProvider.tsFile · 0.90
retrieveRawValueFunction · 0.90
doGuessOrdinalFunction · 0.90

Calls 2

isArrayFunction · 0.85
isObjectFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…