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

Method hasValue

src/data/SeriesData.ts:822–833  ·  view source on GitHub ↗

* If value is NaN. Including '-' * Only check the coord dimensions.

(idx: number)

Source from the content-addressed store, hash-verified

820 * Only check the coord dimensions.
821 */
822 hasValue(idx: number): boolean {
823 const dataDimIndicesOnCoord = this._dimSummary.dataDimIndicesOnCoord;
824 for (let i = 0, len = dataDimIndicesOnCoord.length; i < len; i++) {
825 // Ordinal type originally can be string or number.
826 // But when an ordinal type is used on coord, it can
827 // not be string but only number. So we can also use isNaN.
828 if (isNaN(this._store.get(dataDimIndicesOnCoord[i], idx) as any)) {
829 return false;
830 }
831 }
832 return true;
833 }
834
835 /**
836 * Retrieve the index with given name

Callers 4

_renderNormalMethod · 0.80
renderMethod · 0.80
renderMethod · 0.80
_renderNormalMethod · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected