# New release of elm-charts!

**URL:** <https://discourse.elm-lang.org/t/new-release-of-elm-charts/7563>\
**Category:** Show and Tell\
**Created:** [July 19, 2021, 10:36am UTC](https://discourse.elm-lang.org/t/new-release-of-elm-charts/7563 "2021-07-19T10:36:29Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![IloSophiep](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/ilosophiep/32/3489_2.png) [@IloSophiep](https://discourse.elm-lang.org/u/IloSophiep)\
**Post date:** [July 24, 2021, 7:35pm UTC](https://discourse.elm-lang.org/t/new-release-of-elm-charts/7563/13 "2021-07-24T19:35:14Z")

</div>

First of all: Thanks for the awesome looking library! I recently wanted to do some charts for a private project but ended up not being sure what to use in Elm for that. Because it wasn’t that important i just went with some table display instead. Seeing this announcement made me go back and try it with some fancy charts!

My problem: I might be missing something real obvious, but i can’t seem to get the charts to respect the given amount of space? I have the elm app embeded:

```auto
<div id="elm-history-graph"></div>

```

and

```auto
main : Program String Model Msg
main =
    Browser.element

```

and stuff and i am just trying for starters to render it inside:

```auto
view _ =
    let
        data =
            [ ...
            ]

        content =
            C.chart
                [ CA.width 300
                ]
                [C.xLabels []
                , C.yLabels [CA.withGrid]
                , C.series .x
                    [C.interpolated .y [ CA.monotone] []
                    , C.interpolated .z [CA.monotone] []
                    ]
                    data
                ]
    in
    Html.div
        [Html.Attributes.style "width" "300px"]
        [content]

```

With most of the the charts stuff taking from [a github example](https://github.com/terezka/elm-charts/blob/2.0.0/docs/examples/LineCharts/Montone.elm). But the chart’s labels are rendering outside of their container. Is that normal?

---

_[View the full topic](https://discourse.elm-lang.org/t/new-release-of-elm-charts/7563)._
