@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={&#39;modules&#39;:[{&#39;name&#39;:&#39;visualization&#39;,&#39;version&#39;:&#39;1.1&#39;,&#39;packages&#39;:[&#39;calendar&#39;]}]}"></script>
<div id="buttons" class="buttons"></div>
<hr/>
<div id="JSFiddle">
    <div id="chart_div" style="width: 1100px;"></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

google.setOnLoadCallback(drawChart);
<!-- 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 -->

                 
                 function drawChart() {
                 var dataTable = new google.visualization.DataTable();
                 dataTable.addColumn({ type: 'date', id: 'Date' });
                 dataTable.addColumn({ type: 'number', id: 'Won/Loss' });
                 dataTable.addRows([
                 [ new Date(2012, 3, 13), 37032 ],
                 [ new Date(2012, 3, 14), 38024 ],
                 [ new Date(2012, 3, 15), 38024 ],
                 [ new Date(2012, 3, 16), 38108 ],
                 [ new Date(2012, 3, 17), 38229 ],
                 [ new Date(2012, 3, 18), 37967 ],
                 [ new Date(2012, 3, 20), 36770 ],
                 [ new Date(2012, 3, 21), 37839 ],
                 [ new Date(2012, 3, 30), 37359 ],
                 [ new Date(2012, 4, 1), 37225 ],
                 [ new Date(2012, 4, 2), 37434 ],
                 [ new Date(2012, 4, 4), 37223 ],
                 [ new Date(2012, 4, 5), 37581 ],
                 [ new Date(2012, 4, 6), 37394 ],
                 [ new Date(2012, 4, 10), 37348 ],
                 [ new Date(2012, 4, 11), 37438 ],
                 [ new Date(2012, 4, 12), 38048 ],
                 [ new Date(2012, 4, 13), 37611 ],
                 [ new Date(2012, 4, 14), 37334 ],
                 [ new Date(2012, 4, 15), 37292 ],
                 [ new Date(2012, 4, 25), 37594 ],
                 [ new Date(2012, 4, 26), 38099 ],
                 [ new Date(2012, 4, 27), 37844 ],
                 [ new Date(2012, 4, 28), 37921 ],
                 [ new Date(2012, 4, 29), 37216 ],
                 [ new Date(2012, 4, 30), 37195 ],
                 [ new Date(2012, 4, 31), 37629 ],
                 [ new...