Title: Chart distance tooltip incorrect
Last modified: March 15, 2018

---

# Chart distance tooltip incorrect

 *  [dsbking](https://wordpress.org/support/users/dsbking/)
 * (@dsbking)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/chart-distance-tooltip-incorrect/)
 * 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)

 *  [Delite Studio](https://wordpress.org/support/users/delitestudio/)
 * (@delitestudio)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/chart-distance-tooltip-incorrect/#post-10076979)
 * +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](https://wordpress.org/support/users/dsbking/)
 * (@dsbking)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/chart-distance-tooltip-incorrect/#post-10085003)
 * 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.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-gpx-maps_bcbfb3.svg)
 * [WP GPX Maps](https://wordpress.org/plugins/wp-gpx-maps/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-gpx-maps/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-gpx-maps/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-gpx-maps/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-gpx-maps/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-gpx-maps/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [dsbking](https://wordpress.org/support/users/dsbking/)
 * Last activity: [8 years, 3 months ago](https://wordpress.org/support/topic/chart-distance-tooltip-incorrect/#post-10085003)
 * Status: not resolved