@cloudformatter template
A simple starting template for @cloudformatter testing
HTML
<script src="http://www.cloudformatter.com/Resources/Pages/CSS2Pdf/Script/xepOnline.jqPlugin.js"></script>
<script src="https://www.google.com/jsapi?autoload={'modules':[{'name':'visualization','version':'1.1','packages':['treemap']}]}"></script>
<div id="buttons" class="buttons"></div>
<hr/>
<div id="JSFiddle">
<div id="chart_div" style="width: 1100px; height: 500px;"></div>
</div>
CSS
.buttons button:first-child {
border-top-left-radius: 5px;
border-bottom-left-radius: 5px;
}
.buttons button:last-child {
border-top-right-radius: 4px;
border-bottom-right-radius: 4px;
}
button {
color:#111;
background-image: linear-gradient(to bottom,#ffffff 0,#777777 100%);
background-repeat: repeat-x;
padding: 5px 10px;
font-size: 12px;
line-height: 1.5;
cursor: pointer;
border-width:1px;
border-color: #777;
text-shadow: 0 -1px 0 rgba(0,0,0,.1);
box-shadow: inset 0 1px 0 rgba(255,255,255,.15),0 1px 1px rgba(0,0,0,.075);
}
button:hover{
color:#fff;
background-image: linear-gradient(to top,#337ab7 0,#265a88 100%);
}
JavaScript
<!-- This adds the proper namespace on the generated SVG -->
function AddNamespace(){
var svg = jQuery('#chart_div svg');
svg.attr("xmlns", "http://www.w3.org/2000/svg");
svg.css('overflow','visible');
}
<!-- This generates the google chart -->
google.setOnLoadCallback(drawChart);
function drawChart() {
var data = google.visualization.arrayToDataTable([
['Location', 'Parent', 'Market trade volume (size)', 'Market increase/decrease (color)'],
['Global', null, 0, 0],
['America', 'Global', 0, 0],
['Europe', 'Global', 0, 0],
['Asia', 'Global', 0, 0],
['Australia', 'Global', 0, 0],
['Africa', 'Global', 0, 0],
['Brazil', 'America', 11, 10],
['USA', 'America', 52, 31],
['Mexico', 'America', 24, 12],
['Canada', 'America', 16, -23],
['France', 'Europe', 42, -11],
['Germany', 'Europe', 31, -2],
['Sweden', 'Europe', 22, -13],
['Italy', 'Europe', 17, 4],
['UK', 'Europe', 21, -5],
['China', 'Asia', 36, 4],
['Japan', 'Asia', ...