Skip to content

Commit

Permalink
Expose sum as statistics option (#925)
Browse files Browse the repository at this point in the history
  • Loading branch information
j08lue authored Apr 25, 2024
2 parents 8c54113 + fb5edb9 commit 8d6263d
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ export interface DataMetric {
| 'infographicB'
| 'infographicC'
| 'infographicD'
| 'infographicE';
| 'infographicE'
| 'infographicF';
}

export const DATA_METRICS: DataMetric[] = [
Expand Down Expand Up @@ -48,6 +49,12 @@ export const DATA_METRICS: DataMetric[] = [
label: 'Median',
chartLabel: 'Median',
themeColor: 'infographicE'
},
{
id: 'sum',
label: 'Sum',
chartLabel: 'Sum',
themeColor: 'infographicF'
}
];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ export interface DataMetric {
| 'infographicB'
| 'infographicC'
| 'infographicD'
| 'infographicE';
| 'infographicE'
| 'infographicF';
style?: Record<string, string>
}

Expand Down Expand Up @@ -49,6 +50,12 @@ export const DATA_METRICS: DataMetric[] = [
label: 'Median',
chartLabel: 'Median',
themeColor: 'infographicE'
},
{
id: 'sum',
label: 'Sum',
chartLabel: 'Sum',
themeColor: 'infographicF'
}
];

Expand Down
3 changes: 2 additions & 1 deletion app/scripts/styles/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ export const VEDA_OVERRIDE_THEME = {
infographicB: '#6138BE', // Ave
infographicC: '#83868A', // Max
infographicD: '#F2F2F2', // STD
infographicE: '#3094E3' // Median
infographicE: '#3094E3', // Median
infographicF: '#1D5C5D' // Sum
},
type: {
base: {
Expand Down
1 change: 1 addition & 0 deletions docs/content/frontmatter/layer.md
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ Available metrics:
- max (Max)
- std (Standard Deviation)
- median (Median)
- sum (Sum)

**analysis.sourceParams**
`object`
Expand Down

0 comments on commit 8d6263d

Please sign in to comment.