Repository navigation
Update leaflet.heightgraph 0.2.0 -> 1.4.0 - #2257
Conversation
|
And by the way is there a reason we have to hover the 'Legend' label to see the legend? I never even noticed this, but the legend is actually quite useful, so maybe we should just always show it automatically? |
|
Thanks for the update. I think we don't need the d3 dependency anymore? IIRC this was changed with 1.0. Or do we use d3 for something else as well?
At least by default I don't think that there is an option for this. Adding an option for this in the HeightGraph library should be possible and probably not too complicated. |
|
Thanks for the quick reply! I will try to remove the explicit d3 dependency then.
Ok, also it might be worse showing the legend in all cases because sometimes there are too many values... |
|
Hm so far I still need d3 for the color palette (a very minor thing), see #2259. Anyway will merge here for now. |
I updated the heightgraph version. One thing I noticed is that in master the 'elevation highlighting' is not updated while moving the slider (on the right y-axis of the diagram) and after moving it it annoyingly jumps back to zero when I try to move it again. But this seems fixed with the new version. (Update: Yes this was: GIScience/Leaflet.Heightgraph#42). Also with 1.4.0 it is possible to use a continuous color scale for numeric path details like average_speed or time. Will do this in a follow-up PR.
@boldtrn Thanks for developing the elevation diagram. Do you think there is an issue with this update? I already adjusted the x-ticks (they were too frequent, probably since 0.4.1) and checked the css file (its the same except a folder name img/images).