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 10, 2018
1 parent b152063 commit ff07d76
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 @@ -84,7 +84,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 ff07d76

Please sign in to comment.