• Hi,

    I’ve updated your plugin on one site and I’ve noticed a couple of things compared to the previous version of the plugin:

    1) The tooltip on the chart now rounds the distance to the nearest whole number, where as before it was display to 1 decimal place. Can this be changed back or even better set to two decimal places as the accuracy of the display on some of my charts is now lacking.

    2) It looks as though both the x and y values in the chart are using the same unit of measure when displayed, e.g. if you set the units of measure to “feet/miles” both x and y show as “ft”, if you change the units to “meters/miles” both x and y show as “m”. I’ve only tested this on the altitude chart line as that’s all I’m using but I would guess this would be the same for the other chart lines.

    I’m going to revert back to the previous version of the plugin until at least (2) above if fixed as this breaks the readability of the chart as the units of measure aren’t correct.

    Thanks

    Darren

Viewing 2 replies - 1 through 2 (of 2 total)
  • +1 for problem #2. I’m using the altitude graph, which in my case should have “km” as unit of measurement, while “m” is indicated (e.g. it shows “2m” instead of “2km”).

    Debugging the WP-GPX-Maps.js script, I can see that unit is “2” (row 737), so l_x is correctly set to l_x = { suf : "km", dec : 1 };. But apparently this information is not used to draw the graph…

    Thread Starter dsbking

    (@dsbking)

    Thanks for the latest plugin update but I’m afraid to say that even though the x axis on the chart now looks to be using the correct unit of measure, the tooltip is still using the incorrect one.

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Chart distance tooltip incorrect’ is closed to new replies.