Posted by Boletus on November 9, 2009 at 9:09pm
2 followers
Jump to:
| Project: | Trackfield |
| Version: | 5.x-1.0 |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
Hi,
Is it possible to set the unit spacing for the x and y axis? As it is now the distance in meters overlap and is hard to read.
Comments
#1
You can configure the font size in
admin/settings/trackfield/graphTTF fonts are supported and you should set the path on that page too, which should help this.
Do you have a sample image that is being generated so we can see just how bad the issue is?
#2
Thanks for answering so fast! I'll send you a PM since the site is not online yet! :)
#3
It seems that the jpgraph changes to km at some point when the track becomes long. If I could only find where ...
#4
@#3... trackfield_graph.inc, line 317:
<?php/* If distance is > 10000m divide by 1000 and plot as Km */
/* TODO: Don't assume X is distance */
/* TODO: Support that anitquated miles/feet system */
if ($x_max >= TRACKFIELD_METRIC_M_MAX) {
?>
TRACKFIELD_METRIC_M_MAXis defined at the top oftrackfield.moduleand is set to 10,000.#5
Hi,
I tried to change the TRACKFIELD_METRIC_M_MAX to 5000. Every track is longer than 5 km, and I would like kilometers on the distance axis. But I graph shows zero distance. Me and my mathematics ... Do I think backwards? :)