Global Morality
HTML
<script src="http://code.highcharts.com/highcharts.js"></script>
<script src="http://code.highcharts.com/modules/exporting.js"></script>
<div id="container" style="min-width: 310px; height: 550px; margin: 0 auto"></div>
JavaScript
$(function () {
$('#container').highcharts({
credits: { enabled: false },
exporting: { enabled: false },
colors : [ "#000", "#0090bf", "#756a7e", "#949d48", "#a55a26", "#d1a730" ],
chart: {
marginBottom: 150
},
xAxis: {
min: 0,
max: 3,
title: {
text: 'Religiosity scale',
style: { fontFamily: '"franklin-gothic-urw",Verdana,Geneva,sans-serif', color: '#bbb'}
}
},
yAxis: {
min: 0,
title: {
text: '% Saying abortion is "morally unacceptable"',
style: { fontFamily: '"franklin-gothic-urw",Verdana,Geneva,sans-serif', color: '#bbb'} }
},
title: {
text: ''
},
tooltip: {
formatter: function(){
return this.point.name;
}
},
legend: {
align: 'center',
borderWidth: 0,
floating: true,
align: 'left',
width: 320,
itemWidth: 160,
x: 70
},
series: [{
type: 'line',
name: 'Regression Line',
data: [[0, 1.11], [3, 4.51]],
marker: {
enabled: false
},
states: {
hover: {
lineWidth: 0
}
},
enableMouseTracking: false
}, {
type: 'scatter',
name: 'Asia/Pacific',
marker: { symbol: 'circle' },
data: [
{name: "Australia", y: 36, x: 0.6327, region: "Asia/Pacific"},
{name: "China", y: 55, x: 0.1746, region:...