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

Function getAxisStatBySeries

src/coord/axisStatistics.ts:178–195  ·  view source on GitHub ↗
(
    axis: Axis,
    seriesList: (SeriesModel | NullUndefined)[]
    // Return: Never be null/undefined; never contain null/undefined.
)

Source from the content-addressed store, hash-verified

176}
177
178export function getAxisStatBySeries(
179 axis: Axis,
180 seriesList: (SeriesModel | NullUndefined)[]
181 // Return: Never be null/undefined; never contain null/undefined.
182): AxisStatisticsResult[] {
183 if (__DEV__) {
184 validateInputAxis(axis);
185 }
186 const result: AxisStatisticsResult[] = [];
187 eachKeyEachAxis(axis.model.ecModel, function (perKeyPerAxis) {
188 for (let idx = 0; idx < seriesList.length; idx++) {
189 if (seriesList[idx] && perKeyPerAxis.serByIdx[seriesList[idx].seriesIndex]) {
190 result.push(wrapStatResult(perKeyPerAxis));
191 }
192 }
193 });
194 return result;
195}
196
197function eachKeyEachAxis(
198 ecModel: GlobalModel,

Callers 1

Calls 2

eachKeyEachAxisFunction · 0.85
wrapStatResultFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…