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

Function isDimensionStacked

src/data/helper/dataStackHelper.ts:227–231  ·  view source on GitHub ↗
(data: SeriesData, stackedDim: string)

Source from the content-addressed store, hash-verified

225}
226
227export function isDimensionStacked(data: SeriesData, stackedDim: string): boolean {
228 // Each single series only maps to one pair of axis. So we do not need to
229 // check stackByDim, whatever stacked by a dimension or stacked by index.
230 return !!stackedDim && stackedDim === data.getCalculationInfo('stackedDimension');
231}
232
233export function getStackedDimension(data: SeriesData, targetDim: string): DimensionName {
234 return isDimensionStacked(data, targetDim)

Callers 6

prepareDataCoordInfoFunction · 0.90
layoutPerAxisPerSeriesFunction · 0.90
createProgressiveLayoutFunction · 0.90
pointsLayoutFunction · 0.90
getStackedDimensionFunction · 0.85

Calls 1

getCalculationInfoMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…