Repository: OCHA-DAP/hdx-ckan

Issue:
Browse Page Map: opening a country link has different behaviors
From the map:  open in new tab
From the list: open in same tab

We should make it the same:  open in same tab (unless there was some specification that it should be a new tab that I'm not remembering. 

Graphic in Colombia page: instead of line (time-series) make it a bar graph.
CJ added current action for this issue:
- Change "Number of IDPs" graph **from** bar graph **to** line graph. 

-----------------Original issue text follows---------------------
I think the graph **Number of people with access constrains** would look better if it was a bar graph instead of a line, time-series: 

![screen shot 2014-12-10 at 12 50 45 pm](https://cloud.githubusercontent.com/assets/953118/5381033/61da09f2-806b-11e4-8cba-532c10734cc7.png)

The reason I think that is that the lines give the impression the indicator changes significantly every month, but in a continuum of time. Bar graphs will help the user compare months as nearly independent measurements, which is influences better consumption of the data in my opinion. 

I chatted with the Data Team about this (including @JavierTeran) and they've approved this suggestion.



Discussion:

The only argument against this in my mind is that the data is not over regular time periods (note data on 14-Jun and 14-Jul 2014).  However, it looks like someone has since edited the data to make it truly monthly, so no worries.   We're making the change. 

@cjhendrix apparently that was an error with the data. We found it yesterday and fixed it. 

@cjhendrix I just checked the Colombia page on prod (https://data.hdx.rwlabs.org/group/col) and it seems that **both** charts are now bar charts. I think the first one (Number of Internally Displaced People) should be a line chart and the second one (Number of People with Access Constraints) should be a bar chart. 

Let me know if this makes sense. 

Sorry for the confusion.  They are both fixed time period data, why should we display them differently? 

Both line and bar charts are appropriate to use in those cases as the relationship among data points is continuous. 
- **In the first plot** (Number of Internally Displaced People) the transition between data points is smoother. A line plot conveys information about how the overall figures have increased to its maximum in 2002 and are slowly decreasing. 
- **In the second plot** (Number of People with Access Constraints) the data has much larger variance which gives an impression of discontinuity. A bar plot highlights the difference between October 2013 and the other observations.  

What about the argument that a line chart implies we know what happened to these numbers between months (or years, or whatever), when in fact we don't?  It's a complaint I've heard made about bar charts before, not that I necessarily subscribe to it.  Lines should only be used for mathematical functions (for example, if we had a trend line based on the annual values).  

Anyway, pedantic (but interesting!) arguments about data science aside, it's totally a Data/Comms call about how these graphs are displayed, so if others agree, we can make this change in the next sprint. 

Pinging @JavierTeran. 

Thanks @luiscape I totally agree with you. I think bars for people with access represents more what the data wants to say. Not really a trend in this case but the size of the problem in any given time. 


Resolving patch:
diff --git a/ckanext-hdx_theme/ckanext/hdx_theme/version.py b/ckanext-hdx_theme/ckanext/hdx_theme/version.py
--- a/ckanext-hdx_theme/ckanext/hdx_theme/version.py
+++ b/ckanext-hdx_theme/ckanext/hdx_theme/version.py
@@ -1 +1 @@
-hdx_version = 'v0.6.1'
+hdx_version = 'v0.6.2'


Test patch: