Skip to content

Commit

Permalink
Fix the axis.padding API to expect a Number and Object | Fixes #825
Browse files Browse the repository at this point in the history
  • Loading branch information
matuzalemsteles committed Apr 20, 2018
1 parent 32055fe commit a5dfdad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/clay-charts/src/ChartBase.js
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,7 @@ ChartBase.STATE = {
localtime: Config.bool(),
max: Config.number(),
min: Config.number(),
padding: Config.object(),
padding: Config.oneOfType([Config.number(), Config.object()]),
show: Config.bool(),
tick: Config.shapeOf({
centered: Config.bool(),
Expand Down Expand Up @@ -730,7 +730,7 @@ ChartBase.STATE = {
label: Config.object().string(),
max: Config.number(),
min: Config.number(),
padding: Config.number(),
padding: Config.oneOfType([Config.number(), Config.object()]),
show: Config.bool(),
tick: Config.shapeOf({
count: Config.number(),
Expand All @@ -756,7 +756,7 @@ ChartBase.STATE = {
label: Config.object().string(),
max: Config.number(),
min: Config.number(),
padding: Config.object().string(),
padding: Config.oneOfType([Config.number(), Config.object()]),
show: Config.bool(),
tick: Config.shapeOf({
count: Config.number(),
Expand Down

0 comments on commit a5dfdad

Please sign in to comment.