SHARE

Charts

chart.js

Greenhouse Gas Emissions

external script link (placed in headscripts / css section)

https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.3.0/Chart.bundle.js

HTMl Container

<canvas id="myBarChart" width="400" height="400"></canvas>
var ctxBar = document.getElementById("myBarChart");
var myBarChart = new Chart(ctxBar, {
type: 'horizontalBar',
data: {
	labels: ["Ingeo", "PVC", "PP", "LDPE", "HDPE", "PET (bottle grade)", "GPPS", "HIPS", "ABS", "PC"],
	datasets: [{
		label: "US Producers",
		backgroundColor: [ 
			'rgba(188, 210, 162, 1)',
			'rgba(188, 210, 162, 1)',
			'rgba(188, 210, 162, 1)',
			'rgba(188, 210, 162, 1)',
			'rgba(188, 210, 162, 1)',
			'rgba(188, 210, 162, 1)',
			'rgba(188, 210, 162, 1)',
			'rgba(188, 210, 162, 1)',
			'rgba(188, 210, 162, 1)',
			'rgba(188, 210, 162, 1)',
		],
		borderColor: [
			'rgba(188, 210, 162, 1)',
			'rgba(188, 210, 162, 1)',
			'rgba(188, 210, 162, 1)',
			'rgba(188, 210, 162, 1)',
			'rgba(188, 210, 162, 1)',
			'rgba(188, 210, 162, 1)',
			'rgba(188, 210, 162, 1)',
			'rgba(188, 210, 162, 1)',
			'rgba(188, 210, 162, 1)',
			'rgba(188, 210, 162, 1)',
		],
		borderWidth: 1,
		data: [0.62, 2.42, 1.86, 2.20, 1.90, 2.73, 3.24, 3.26, 3.81, 0]
	},
	{
		label: "EU Producers",
		backgroundColor: [ 
			'rgba(246, 170, 63, 1)',
			'rgba(246, 170, 63, 1)',
			'rgba(246, 170, 63, 1)',
			'rgba(246, 170, 63, 1)',
			'rgba(246, 170, 63, 1)',
			'rgba(246, 170, 63, 1)',
			'rgba(246, 170, 63, 1)',
			'rgba(246, 170, 63, 1)',
			'rgba(246, 170, 63, 1)',
			'rgba(246, 170, 63, 1)',
		],
		borderColor: [
			'rgba(246, 170, 63, 1)',
			'rgba(246, 170, 63, 1)',
			'rgba(246, 170, 63, 1)',
			'rgba(246, 170, 63, 1)',
			'rgba(246, 170, 63, 1)',
			'rgba(246, 170, 63, 1)',
			'rgba(246, 170, 63, 1)',
			'rgba(246, 170, 63, 1)',
			'rgba(246, 170, 63, 1)',
			'rgba(246, 170, 63, 1)',
		],
		borderWidth: 1,
		/*labels: [
			'0.62',
			'1.90',
			'1.63',
			'1.87',
			'1.80',
			'2.15',
			'2.25',
			'2.43',
			'3.80',
			'4.13',
		],*/
		data: [0.62, 1.90, 1.63, 1.87, 1.80, 2.15, 2.25, 2.43, 3.80, 4.13]
	}
	]
}