terezka / elm-charts

Create SVG charts in Elm.
https://www.elm-charts.org
BSD 3-Clause "New" or "Revised" License
726 stars 67 forks source link

Line chart can't be drawn with certain floats. #94

Closed techmindful closed 2 years ago

techmindful commented 2 years ago

A line can't be drawn if the data has some digits (many 0?) after the floating point. Ellie: https://ellie-app.com/fDHQ7myzw7Ba1. Check out the data declaration.

Zack K from Elm Slack found a workaround. Quote: May have found a workaround. The clip-path style on your second g is invalid when both of the values are the same, which is why it displays properly. Setting clip-path: none seems to resolve the issue

path {
      clip-path: none !important;
    }

https://ellie-app.com/fDJVSfx6FnGa1 Don't have a great explanation why, but this might help you workaround for now End quote.