Mrz 272012
 
Bild 061

What’s it all about?

This plugin generates charts from GPX-files. The file will be processed in real-time, no intermediate data is written to the database or the wp-content directory. Currently the plugin is tested with GPX-Files generated by a Garmin-Device. The TRK-Section is parsed and information about your heartrate, your cadence and the current speed is calculated. Since GPX-files can contain a lot of data-points they can be reduced to a certain amount to guarantee, that the rendering time of the chart won’t consume to much time in your browser. You can hover with the mouse over the generated chart to get detailed information about the currently selected time-instance. You can also turn off graphs that where currently shown. Every graph get its own Y-axis and color.

This documentation needs to be improved. Please be patient.

Examples

All attributes to the shortcode must be in the same line as the short-code itself. In the examples I put it into multiple lines to make reading easier.

A very simple example using only the default settings

[ gpx2chart href="http://wwerther.de/wp-content/plugins/gpx2chart/test/heartrate.gpx" /]

Athletics pictogram Running

Day 25-APR-11 17:54:53

25.04.2011 15:54-25.04.2011 16:29

Valueminavgmaxunit
Heartrate86.00145.14160.00bpm
Altitude512.04521.27526.94m
 Rise: 61.97mFall: 62.93m
Speed0.007.1310.03km/h
Distance  3.98km

Modify the Titles

[ gpx2chart href="http://wwerther.de/wp-content/plugins/gpx2chart/test/heartrate.gpx"
         headline="Headline"
         title="Title"
         subtitle="Subtitle"  /]

Athletics pictogram Headline

Title

Subtitle

Valueminavgmaxunit
Heartrate86.00145.14160.00bpm
Altitude512.04521.27526.94m
 Rise: 61.97mFall: 62.93m
Speed0.007.1310.03km/h
Distance  3.98km

Modify the type and size

[ gpx2chart href="http://wwerther.de/wp-content/plugins/gpx2chart/test/cadence.gpx"
         type="cycling"
         container.width="760px"
         chart.width="740px"
         chart.height="400px"  /]

Cycling (road) pictogram Cycling

22-APR-11 17:24:17

22.04.2011 13:32-22.04.2011 15:24

Valueminavgmaxunit
Cadence0.0045.2182.00rpm
Altitude516.85526.51536.55m
 Rise: 115.35mFall: 114.39m
Speed0.0016.7833.31km/h
Distance  17.08km

What else?

If you like this plugin and you use it I appreciate if you would send me an email so I know you use the plugin. Please let me know about extensions you might want to have, or send me bug-reports or even better fixes ;)
You could also donate via



Flattr this

 Leave a Reply

(required)

(required)

Captcha Captcha Reload

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>