Skip to content

Commit

Permalink
Charts: Fix size
Browse files Browse the repository at this point in the history
The `Container.responsive` based container still provides space for the
legend even if it's set to `Legends.none`. See
terezka/line-charts#41.

As a workaround, set the container explicitly.
  • Loading branch information
dbrgn committed Jun 11, 2018
1 parent 8f17f01 commit 0db8be6
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/Charts.elm
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,14 @@ temperatureChart now measurements =
, axisLine = AxisLine.full Colors.black
, ticks = Ticks.time tickCount
}
, container = Container.responsive "line-chart-1"
, container =
Container.custom
{ attributesHtml = []
, attributesSvg = []
, size = Container.relative
, margin = Container.Margin 10 10 60 50
, id = "line-chart-30d"
}
, interpolation = Interpolation.default
, intersection = Intersection.default
, legends = Legends.none
Expand Down

0 comments on commit 0db8be6

Please sign in to comment.