Flexicharts builder and other improvements

29 April, 2016 by David Johnstone

Quite a few improvements have been made to Flexicharts. The most obvious one is that there’s a “chart creator” button, which, when clicked, shows a simple interface that allows custom charts to be created with a few mouse clicks and no typing.

This chart creator isn’t able to create a lot of charts that can be entered directly as commands, but it makes it possible to build some charts with a quick and simple interface.

There are a lot more changes to Flexicharts beyond the chart creator.

The colour of points can be based on data by specifying color as an axis.

chart().pwc170(0.5, 'y').epower_curve(1200, 'x').day_lts('color').color('blue-gold').x_axis(160, 360).y_axis(190, 420)

There are five built-in colour scales: yellow-purple (which is used by default), rainbow, green-red, blue-gold (used above), and white-black.

Segments can be used with Flexicharts. The segment must first be selected with segment(name), and this allows access to segment summary data, plus access to the usual ride summary data for the ride that it was part of. For example:

chart().segment('5:00 interval').segment_power('x').segment_heartrate('y').day_lts('color')

day_lts, day_sts and day_sb provide access to the long term stress, short term stress, and stress balance from the day of a ride.

aggregate(max) and aggregate(min) preserve the summary data of the ride found, making it possible to find, for example, the longest ride in each month and making a table with links to each ride. There are also new max(n) and min(n) commands for aggregate, which find multiple highest or lowest rides of whatever data you’re looking at. With this, it’s possible to do things like chart the average of the top five twenty minute efforts according to effective power:

chart().epower_curve(1200).group_by(month).aggregate(max(5)).group_by(month).aggregate(average).points()

There are also some new helper commands for setting the name, colour and axis limits.

The Flexicharts documentation has been updated with all the new details. All existing charts should work the same as before. Some of the default charts in the chart library have been slightly changed.

This is the blog of Cycling Analytics, which aims be the most insightful, most powerful and most user friendly tool for analysing ride data and managing training. You might be interested in creating an account, or following via Facebook or Twitter.

blog comments powered by Disqus