Closed larsen closed 10 months ago
When used standalone
(let [elevation (gpx/elevation gpx-resource)] (clerk/html [:svg {:width 600 :height 200} (diagram/elevation-diagram {:elevation elevation :from 0 :to 400 :viewbox [0 0 600 200]})]))
but, when used in a plan diagram
(clerk/html (diagram/plan->diagram plan-start-19))
For reference, here the elevation chart displayed by Komoot for the same GPX file
It's actually all pieces displayed in reverse!
When used standalone
but, when used in a plan diagram
For reference, here the elevation chart displayed by Komoot for the same GPX file