#breaktheinternet
by amcharts
HTML
<!--[if gte IE 9]>
<style type="text/css">
#chartdiv {
filter: none;
}
</style>
<![endif]-->
<script type="text/javascript" src="http://www.amcharts.com/lib/3/amcharts.js"></script>
<script type="text/javascript" src="http://www.amcharts.com/lib/3/serial.js"></script>
<script type="text/javascript" src="http://www.amcharts.com/lib/3/themes/none.js"></script>
<div id="chartdiv"></div>
CSS
#chartdiv {
width : 500px;
height : 700px;
xbackground: url(http://timedotcom.files.wordpress.com/2014/11/kim-kardashian-paper-cover.jpg?w=813) no-repeat -120px -170px;
background: rgb(142,80,57); /* Old browsers */
/* IE9 SVG, needs conditional override of 'filter' to 'none' */
background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIxMDAlIiB5Mj0iMTAwJSI+CiAgICA8c3RvcCBvZmZzZXQ9IjAlIiBzdG9wLWNvbG9yPSIjOGU1MDM5IiBzdG9wLW9wYWNpdHk9IjEiLz4KICAgIDxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iIzQ5MWYxMSIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgPC9saW5lYXJHcmFkaWVudD4KICA8cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBmaWxsPSJ1cmwoI2dyYWQtdWNnZy1nZW5lcmF0ZWQpIiAvPgo8L3N2Zz4=);
background: -moz-linear-gradient(-45deg, rgba(142,80,57,1) 0%, rgba(73,31,17,1) 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, right bottom, color-stop(0%,rgba(142,80,57,1)), color-stop(100%,rgba(73,31,17,1))); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(-45deg, rgba(142,80,57,1) 0%,rgba(73,31,17,1) 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(-45deg, rgba(142,80,57,1) 0%,rgba(73,31,17,1) 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(-45deg, rgba(142,80,57,1) 0%,rgba(73,31,17,1) 100%); /* IE10+ */
background: linear-gradient(135deg, rgba(142,80,57,1) 0%,rgba(73,31,17,1) 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#8e5039', endColorstr='#491f11',GradientType=1 ); /* IE6-8 fallback on horizontal gradient */
}
JavaScript
var chart = AmCharts.makeChart("chartdiv", {
"theme": "none",
"type": "serial",
"dataProvider": [
{ "c": "1", "left": 13.2, "right": 14.5, color: "#040404" },
{ "c": "2", "left": 14, "right": 14.55, color: "#040404" },
{ "c": "3", "left": 12, "right": 14, color: "#ac7355" },
{ "c": "4", "left": 11, "right": 15, color: "#ac7355" },
{ "c": "5", "left": 11, "right": 13.5, color: "#ac7355" },
{ "c": "6", "left": 12.5, "right": 14, color: "#ac7355" },
{ "c": "7", "left": 10, "right": 16, color: "#ac7355" },
{ "c": "8", "left": 10, "right": 15.5, color: "#ac7355" },
{ "c": "9", "left": 10, "right": 14.5, color: "#ac7355" },
{ "c": "10", "left": 11, "right": 14, color: "#ac7355" },
{ "c": "11", "left": 11, "right": 14.5, color: "#ac7355" },
{ "c": "12", "left": 10.5, "right": 17, color: "#ac7355", "middle": 15 },
{ "c": "13", "left": 10.5, "right": 17.5, color: "#ac7355", "middle": 15.2 },
{ "c": "14", "left": 10.5, "right": 17.2, color: "#040404", "middle": 15 },
{ "c": "15", "left": 7, "right": 19.5, color: "#040404" },
{ "c": "16", "left": 8, "right": 18.5, color: "#040404" }
],
"valueAxes": [{
"id": "v1",
"axisAlpha": 0,
"gridAlpha": 0,
"minimum": 5,
"maximum": 20,
"labelsEnabled": false
}],
"startDuration": 1,
"graphs": [{
"id": "g1",
"lineColor": "#ac7355",
"lineThickness": 2,
"type": "line",
"fillAlphas": 0,
"lineColorField": "color",
"fillColorsField": "color",
"gradientOrientation": "horizontal",
"lineAlpha": 1,
"valueField": "left"
}, {
"lineColor": "#6d3621",
"lineThickness": 2,
"type": "line",
"fillAlphas": 1,
"lineColorField": "color",
"fillColorsField": "color",
"gradientOrientation": "horizontal",
...