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

raintonr’s picture

You can configure the font size in admin/settings/trackfield/graph

TTF 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?

Boletus’s picture

Thanks for answering so fast! I'll send you a PM since the site is not online yet! :)

Boletus’s picture

It seems that the jpgraph changes to km at some point when the track becomes long. If I could only find where ...

raintonr’s picture

@#3... trackfield_graph.inc, line 317:

    /* 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_MAX is defined at the top of trackfield.module and is set to 10,000.

Boletus’s picture

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? :)