Configuring Graph sizes
| Project: | Trackfield |
| Version: | 6.x-1.0 |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | duplicate |
Reading through the issues I found out that to show graphs, it is necessary to set some config parameters on the admin/settings/trackfield/graph page. However, the instructions given there are not very helpful:
Various size graphing options are available whenever these are shown (in teaser, full node, views, etc). Define the possible choices required here.
Margins are "left,right,top,bottom"
What values should be entered into the table? Is this documented anywhere?
Fields available:
Width
Height
Line
Margins
Axis
Font
Size
Legend
Resample
What about fonts? I created a "Fonts" directory in the JpGraph directory and placed bunch of fonts in there including the free Bittstream Vera fonts, the "Font" drop-down in the table mentioned above seems to reference. After adding the path to the Fonts directory into the "TTF Path:" field and saving, I expected the "Fonts" menu to get updated with the fonts from my Fonts directory. This did not happen, so obviously I am not getting how to configure this.
Thank you

#1
hey,
thanks for your module.
Can you give some documentation for using graph.
See the map with track is ok but not the graph at all
#2
I have had lots of issues with getting the graphs to work but finally I've got it going.
It would seem you don't need to upload any fonts to your server.
Here's what I did:
1: in the /admin/settings/trackfield/graph you need to make 1 or 2 entries in the 'Graph sizes' section. I've named mine Main and Preview. (although I don't use the preview anywhere)
I entered the following:
Label, Width, Height, Line, (Margins), Axis, Font, Size, Legend, Resample
Main, 700, 300, 1, (60,5,5,5), checked, FF_FONT2, 10, checked,1
The important part here is the MARGINS entry. If it is at 0,0,0,0 then none of the labels will show.
2: In 'display fields' for my trails page I told the graph to display the MAIN (from #1 above) selection.
Display Fields is found /admin/content/types/your content type here/display
3: Set up the colors for the graph. (see attached)
I've included a jpg of my screen to show how I've configured it.
See www.fatrac.org/trails
I hope this helps some of you.
#3
Duplicate of #671484: Better documentation. Yes, better documentation is required.
#4
Have added a page on this. See: http://drupal.org/node/677564