Help » Charts in Blog Posts

BROWSE HELP

Additional Help

Other Information

Please be safe, consult with your physician before beginning any
new fitness plan.

One of the ways you can customize your Sweat365 blog is to embed charts from your logbook into blog posts. Let’s say for example that you’re writing a blog post summary of your training activity for the last month, you may want to include a table of distances and time for various activities, and include a year to date chart of your activity.

Here are some quick instructions on how to accomplish this.

If you’d like to embed a logbook chart into your blog post you can use a logbook-chart template tag to do so. A “template tag” is similar to those used to include MapMyFitness routes. For example, to include a table of your activity from January 1st to January 31st, you would include the following text in your blog post:
{logbook-chart:activity start_date=2007-01-01 end_date=2007-31-01 sbr_only=0}

If you’d like to only include a summary of Swim/Bike/Run activity, then set the sbr_only attribute to 1, like this:
{logbook-chart:activity start_date=2007-01-01 end_date=2007-31-01 sbr_only=1}

If you just want a table, without a pie chart, you can use the following tag:
{logbook-table:activity start_date=2007-01-01 end_date=2007-31-01 sbr_only=0}

You can also include an year to date chart of weekly activity with the following tag:
{logbook-chart:weeklyview width=400 height=300}

Or you can include distance summaries for biking or running with one of the following tags:
{logbook-chart:weeklymiles width=400 height=300 activity=bike}
{logbook-chart:weeklymiles width=400 height=300 activity=run}

With the weekly charts, you can adjust the width and height to fit into your favorite blog theme. But generally a width of 400 and height of 300 looks best.

2 Comments: :

Charts in Blog Posts

April 28th, 2008 9:22 pm

thebine says:

Hi:

How do I post a countdown clock for my events? I’ve seen clocks on a couple of blogs and I wanted to incorporate one on my page

January 9th, 2010 3:32 pm

Andy Hardin says:

Just to note that in the examples above, the month and day of month are swapped for me. For instance, if I was wanting to post for January 4, 2010 to January 9, 2010 and tried
{logbook-chart:activity start_date=2010-04-01 end_date=2010-09-01 sbr_only=0}
I wouldn’t get the correct data.

Instead I have to use
{logbook-chart:activity start_date=2010-01-04 end_date=2010-01-09 sbr_only=0}

So if you follow the example above and get incorrect data, you may try swapping the day and month.

LEAVE A COMMENT:

News

Introducing The Healthy Corp

March 15, 2010 by Brad Hefta-Gaub

As politicians in Washington debate health care reform, Corporate America wrestles with their own Trillion Dollar Question: How do we increase employee productivity and decrease our health care costs? The Answer: Re-define “corporate wellness”. (more…)

New Year - New Feature: Compare Results

January 1, 2010 by Brad Hefta-Gaub

Have you ever noticed in your Sweat365 journal that  you can get a summary of your activity for this week and last week, this month and last month, and this year and last year? Have you ever wondered, why can’t I get a summary of my exercise from the last two months? Or the last six months? Have you ever asked, why can’t I compare two periods to see how my activities have changed? Well, now you can! (more…)

News Archive