Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
google charts sync data
<script type="text/javascript" src=""></script>
<script type="text/javascript" src=""></script>
<script type="text/javascript">
google.load("visualization", "1", {packages:["corechart"]});
function drawChart() {
var jsonData = $.ajax({
url: "",
async: false
// Create our data table out of JSON data loaded from server.
var data = new google.visualization.DataTable(jsonData, 0.6);
var chart = new google.visualization.LineChart(document.getElementById('chart_div'));
var options = {
width: 1080,
height: 810,
title: 'store.synchrotron - Files stored in MyTardis',
colors: ['#e0440e', '#e6693e', '#ec8f6e', '#f3b49f', '#f6c7b6'],
hAxis: { textStyle: { fontSize: '12'}, showTextEvery: '8' },
pointSize: 3
chart.draw(data, options);
<div id="chart_div"></div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.