Skip to content

Commit

Permalink
Merge pull request #424 from Esri/feat/groupedBarChartLegend
Browse files Browse the repository at this point in the history
feat/legendSpacingAndvalueAlign
  • Loading branch information
tomwayson authored Apr 19, 2018
2 parents 48ec6c1 + 6bce91a commit 2696704
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
5 changes: 4 additions & 1 deletion packages/cedar-amcharts/src/specs/bar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ export const bar = {
type: 'column',
newStack: true
}],
legend: {},
legend: {
valueAlign: 'left',
spacing: 25
},
valueAxes: [ {
stackType: 'regular'
} ],
Expand Down
4 changes: 3 additions & 1 deletion packages/cedar-amcharts/test/data/builtBarSpec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ const builtBarSpec = {
}
],
"legend": {
"enabled": false
"enabled": false,
"valueAlign": "left",
"spacing": 25
},
"valueAxes": [
{
Expand Down
4 changes: 4 additions & 0 deletions packages/cedar/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## Unreleased
### Changed
- Defaults for pie charts with legends now specify legend valueAlign and spacing

## [1.0.0-beta.5]
### Added
- One can now add a `style` property which contains `padding` and `pie` properties to `definition`
Expand Down

0 comments on commit 2696704

Please sign in to comment.