Skip to content

Commit

Permalink
Add analysis metrics documentation and mock data
Browse files Browse the repository at this point in the history
  • Loading branch information
danielfdsilva committed Sep 23, 2023
1 parent c6e0f54 commit 9fe9158
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
22 changes: 22 additions & 0 deletions docs/content/frontmatter/layer.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
- [Properties](#properties)
- [Projection](#projection)
- [Legend](#legend)
- [Analysis](#analysis)
- [Compare](#compare)
- [Function values](#function-values)

Expand All @@ -22,6 +23,7 @@ sourceParams:
[key]: value | fn(bag)
compare: Compare
legend: Legend
analysis: Analysis
```
## Properties
Expand Down Expand Up @@ -203,6 +205,26 @@ stops:
label: Barley
```

### Analysis

**analysis**
`object`
Configuration options for the analysis of the dataset layer.

```yaml
metrics: string[]
```

**analysis.metrics**
`string[]`
List of metric ids to enable by default when analysis is performed. The user will then be able to select which metrics to display.
Available metrics:
- min (Min)
- mean (Average)
- max (Max)
- std (Standard Deviation)
- median (Median)

### Compare

**compare**
Expand Down
5 changes: 5 additions & 0 deletions mock/datasets/no2.data.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,11 @@ layers:
- "#c13b72"
- "#461070"
- "#050308"
analysis:
metrics:
- min
- max
- non-existent
- id: no2-monthly-2
stacCol: no2-monthly
name: No2 US
Expand Down

0 comments on commit 9fe9158

Please sign in to comment.