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

Function normalize

src/chart/lines/linesVisual.ts:28–33  ·  view source on GitHub ↗
(a: string | number | (string | number)[])

Source from the content-addressed store, hash-verified

26function normalize(a: string | string[]): string[];
27function normalize(a: number | number[]): number[];
28function normalize(a: string | number | (string | number)[]): (string | number)[] {
29 if (!(a instanceof Array)) {
30 a = [a, a];
31 }
32 return a;
33}
34
35const linesVisual: StageHandler = {
36 seriesType: 'lines',

Callers 2

resetFunction · 0.70
dataEachFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…