-
Notifications
You must be signed in to change notification settings - Fork 199
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
3dcf491
commit e05bb56
Showing
14 changed files
with
250 additions
and
177 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
title: CellData | ||
order: 10 | ||
tag: New | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
--- | ||
title: CellData | ||
order: 10 | ||
tag: New | ||
--- | ||
|
||
功能描述:透视表数值单元格元数据。[详情](https://github.com/antvis/S2/blob/next/packages/s2-core/src/data-set/cell-data.ts) | ||
|
||
```ts | ||
this.meta.data | ||
``` | ||
|
||
| 参数 | 说明 | 类型 | | ||
| --- | --- | --- | | ||
| extraField | `string` | 虚拟度量字段 | | ||
| raw | 原始数据 | [RawData](#rawdata) | | ||
| getValueByField | 获取数值 | (field: `string`) => [DataItem](#dataitem) | | ||
| $$value$$ | 指标值(内部使用) | [DataItem](#dataitem) | | ||
| $$extra$$ | 虚拟度量字段 (内部使用,等价于 `extraField`) | `string` | | ||
| $$origin$$ | 原始数据 (内部使用,等价于 `raw`) | [RawData](#rawdata) | | ||
|
||
## 静态方法 | ||
|
||
```ts | pure | ||
import { CellData } from '@antv/s2' | ||
``` | ||
|
||
### getCellData | ||
|
||
```ts | ||
CellData.getCellData(raw: RawData, extraField: string) | ||
``` | ||
|
||
### getCellDataList | ||
|
||
```ts | ||
CellData.getCellDataList(raw: RawData, extraFields: string[]) | ||
``` | ||
|
||
### getFieldValue | ||
|
||
```ts | ||
CellData.getFieldValue(data: ViewMetaData, field?: string) | ||
``` | ||
|
||
<embed src="@/docs/common/view-meta.zh.md"></embed> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.