Skip to content

Commit

Permalink
grid.y.lines and grid.x.lines accept array of line objects | Fixes #863
Browse files Browse the repository at this point in the history
  • Loading branch information
matuzalemsteles committed May 14, 2018
1 parent 267c546 commit 6e54f06
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions packages/clay-charts/src/ChartBase.js
Original file line number Diff line number Diff line change
Expand Up @@ -982,21 +982,25 @@ ChartBase.STATE = {
}),
x: Config.shapeOf({
show: Config.bool(),
lines: Config.shapeOf({
class: Config.string(),
position: Config.oneOf(['start', 'middle', 'end']),
text: Config.string(),
value: Config.string(),
}),
lines: Config.arrayOf(
Config.shapeOf({
class: Config.string(),
position: Config.oneOf(['start', 'middle', 'end']),
text: Config.string(),
value: Config.string(),
})
),
}),
y: Config.shapeOf({
show: Config.bool(),
lines: Config.shapeOf({
class: Config.string(),
position: Config.oneOf(['start', 'middle', 'end']),
text: Config.string(),
value: Config.string(),
}),
lines: Config.arrayOf(
Config.shapeOf({
class: Config.string(),
position: Config.oneOf(['start', 'middle', 'end']),
text: Config.string(),
value: Config.string(),
})
),
}),
ticks: Config.number(),
}).value({
Expand Down

0 comments on commit 6e54f06

Please sign in to comment.