
/* General */
var debug = false;                // prints various console messages
var timeoutFilterUpdate = 333;    // delay until filters are updated in ms

/* Graph */
var absoluteGraphThreshold = 200.0;

/* Parallel Coordinates */
var colourPCLineNormal = 'rgba(220, 220, 220, .03)';
var colourPCLineActive = 'rgba(251, 151, 248, .3)';
var colourPCLineHighlighted = 'rgba(255, 255, 50, 1)';
var colourPCBar = 'rgba(200, 200, 200, .1)';
var colourPCBarOutline = 'rgba(200, 200, 200, .5)';
var colourPCAxisLines = 'rgba(40, 40, 40, 1)';
var widthPCLineNormal = 1;
var widthPCLineActive = 1;
var widthPCLineHighlighted = 3;
var widthPCSlider = 6;
var widthPCBar = 26;    // invisible region around slider
var dimsPCDefault = [
  "GDP (PPP)",
  "Literacy (total)",
  "Urbanization",
  "Education expenditures",
  "Unemployment rate"
];

/* Bubblechart */
var colourBCBubbleNormal = undefined; // derived from outline
var colourBCBubbleActive = undefined; // derived from outline
var colourBCBubbleHighlighted = undefined; // derived from outline
var colourBCBubbleNormalOutline = 'rgba(220, 220, 220, .3)';
var colourBCBubbleActiveOutline = 'rgba(251, 151, 248, .8)';
var colourBCBubbleHighlightedOutline = 'rgba(255, 255, 50, 1)';
var colourBCSelectionRect = 'rgba(150, 20, 20, .2)';
var colourBCSelectionRectOutline = 'rgba(150, 20, 20, .6)';
var colourBCAxisLines = 'rgba(40, 40, 40, 1)';
var sizeBCMin = 10;
var sizeBCMax = 500;
var dimsBCDefault = [
  "Median age (total)",
  "Life expectancy (total)",
	"Population"
];

/* Map */
var attributesMapCountryNormal = {
  'fill': 'rgb(70, 70, 70)',
  'stroke': 'rgb(70, 70, 70)',
  'stroke-width': 0.25
};
var attributesMapCountryActive = {
  'fill': 'rgb(220, 220, 220)',
  'stroke': 'rgb(220, 220, 220)',
  'stroke-width': 0.25
};
var attributesMapCountryHighlighted = {
  'stroke': 'rgb(255, 255, 155)',
  'fill': 'rgb(255, 255, 50)',
  'stroke-width': 3
};

var attributesMapArrows = {
  'stroke': 'rgb(255, 0, 0)',
  'stroke-width': 7,
  'stroke-opacity': 0.3,
  'fill':'none'
};

var attributesMapArrowHead = {
  'stroke': 'rgb(255, 0, 0)',
  'stroke-width': 1,
  'stroke-opacity': 0.3,
  'fill':'rgb(255, 0, 0)',
  'fill-opacity': 0.3
};

var attributesToSave = ['fill', 'stroke', 'stroke-width'];
var colourMapLineHighlighted = 'rgba(200, 120, 120, .2)';
var colourMapBarNormal = 'rgba(170, 170, 170, .5)';
var colourMapBarActive = 'rgba(200, 120, 120, .5)';
var mapDims = ['Geographic coordinates', 
  'Area',
  'Median age', 
  'Population growth rate', 
  'Birth rate', 
  'Death rate',
	'Life expectancy at birth',
	'Total fertility rate',
	'HIV/AIDS - adult prevalence rate',
	'HIV/AIDS - people living with HIV/AIDS',
	'HIV/AIDS - deaths',
	'School life expectancy (primary to tertiary education)',
	'Education expenditures',
	'GDP (purchasing power parity)',
	'GDP (official exchange rate)',
	'GDP - real growth rate',
	'GDP - per capita (PPP)',
	'GDP - composition by sector',
	'Labor force',
	'Labor force - by occupation',
	'Unemployment rate',
	'Population below poverty line',
	'Household income or consumption by percentage share',
	'Distribution of family income - Gini index',
	'Investment (gross fixed)',
	'Budget',
	'Public debt',
	'Inflation rate (consumer prices)',
	'Central bank discount rate',
	'Commercial bank prime lending rate',
	'Stock of money',
	'Stock of quasi money',
	'Stock of domestic credit',
	'Market value of publicly traded shares',
	'Agriculture - products',
	'Industries',
	'Industrial production growth rate',
	'Electricity - production',
	'Electricity - consumption',
	'Electricity - exports',
	'Electricity - imports',
	'Oil - production',
	'Oil - consumption',
	'Oil - exports',
	'Oil - imports',
	'Oil - proved reserves',
	'Natural gas - production',
	'Natural gas - consumption',
	'Natural gas - exports',
	'Natural gas - imports',
	'Natural gas - proved reserves',
	'Current account balance',
	'Exports',
	'Exports - commodities',
	'Exports - partners',
	'Imports',
	'Imports - commodities',
	'Imports - partners',
	'Reserves of foreign exchange and gold',
	'Debt - external',
	'Stock of direct foreign investment - at home',
	'Stock of direct foreign investment - abroad',
	'Exchange rates',
	'Telephones - main lines in use',
	'Telephones - mobile cellular',
	'Telephone system',
	'Radio broadcast stations',
	'Television broadcast stations',
	'Internet hosts',
	'Internet users',
	'Airports',
	'Airports - with paved runways',
	'Heliports',
	'Pipelines',
	'Roadways',
	'Waterways',
	'Merchant marine',
	'Ports and terminals',
	'Military branches',
	'Military service age and obligation',
	'Manpower fit for military service',
	'Military expenditures'
];
