Afterword

ThimphuTech was the first technology blog in Bhutan. We started writing it in 2009, just as broadband and mobile internet started to take off. (Although internet in Bhutan was launched in 1999, it was either super-slow or super-expensive, and was only used by a selected few).

In the blog, we wrote about technology and food, but also about plenty of other stuff. The blog became popular and influential in Bhutan. A companion bi-weekly column -- Ask Boaz -- was published for many years in the Kuensel, Bhutan's national newspaper. (The complete Kuensel columns are available as an ebook, Blogging with Dragons).

We stopped updating the blog when we left Bhutan in 2014, but the information within the posts can still prove useful, and thus we decided to keep it online.

We thank all our readers.
Tashi Delek,
Boaz & Galit.

Wednesday, November 7, 2012

Trends over time: effective and misleading line charts

Chart from Kuenselonline.com, Nov 7, 2012
Today's Kuensel's cover story "Good fences don't always make good neighbours" featured a series of three charts showing trends in cordyceps harvest, export and average price from 2004 to 2012. While line graphs are excellent for displaying trends over time, there are several guidelines that must be followed to avoid creating a misleading picture. The Kuensel charts suffer from the following issues:

  1. While the x-axis conveys years (2004 to 2012), the points are not equally spaced. For example, in the middle chart the distance between 2011 to 2012 is larger than between other pairs of neighboring years. A trend can appear much more (or less) dramatic if the time axis is not properly spaced.
  2. The three charts all use year on the x-axis. Most readers would expect the same placement of years on all charts, yet that is not the case here due to the over-stretched distance to 2012 in the Export chart.
  3. Values that appear on a line graph typically convey the y-axis value (harvest, export or average price). Including the year label just below these values is confusing and difficult to read.
  4. Using dashed lines for interpolating missing values works well. However, the extrapolation for Export in 2012 is suspect. Why is it assume to be equal to the 2011 value?
  5. It is good practice to keep the same number of decimal for all years. We automatically use the length of the number to infer its size (longer=larger). If some values include a decimal and others do not, we mistakenly infer the longer number to be larger.




I recreated the charts in Microsoft Excel using the numbers from the Kuensel charts. These charts avoid the above pitfalls -- see for yourself whether a different story emerges. 

Note that I also chose to overlay the harvest and export lines in the same chart, since they share the same units and have the same order of magnitude. Line graphs are powerful for comparing trends by overlaying multiple lines on the same chart (if the scales are different, we can use double y-axis scales or normalize all the series). 

The two sets of charts (left and right) differ only by the inclusion of values near the lines. Note that it is easier to compare trends when there are no numbers near the lines. However, if you must include values, make sure that those are only the y-axis values, and that they have the same number of decimals. 


More effective use of line charts for conveying the cordyceps trends. The trends in the charts on the left are easier to grasp, compared to the right charts, which are identical but also include values.

2 comments:

  1. Hi Boaz, This is very good!Now Kuensel charts will be even better.

    ReplyDelete
  2. Thanks Linda! The credit for this post goes to Galit, my co-author in this blog. If you like this post, check out related ones at http://www.thimphutech.com/search/label/Data%20Visualization

    ReplyDelete

We love to hear from our readers!
Comments are reviewed before being published, so it might take a few hours before you see your comments posted.

Note: Only a member of this blog may post a comment.