//http://stackoverflow.com/questions/25398657/center-align-title-in-google-chart google.charts.load('current', {packages: ['corechart', 'line']}); google.charts.setOnLoadCallback(drawChart1); function drawChart1() { var data = new google.visualization.DataTable(); data.addColumn('date', 'X'); data.addColumn('number', 'Unique Visitors'); data.addColumn('number', 'Page Views'); data.addRows([ [new Date(2017, 2, 29), 0, 0], [new Date(2017, 2, 30), 0, 0], [new Date(2017, 2, 31), 0, 0], [new Date(2017, 3, 01), 0, 0], [new Date(2017, 3, 02), 0, 0], [new Date(2017, 3, 03), 0, 0], [new Date(2017, 3, 04), 0, 0], [new Date(2017, 3, 05), 0, 0], [new Date(2017, 3, 06), 0, 0], [new Date(2017, 3, 07), 0, 0], [new Date(2017, 3, 08), 0, 0], [new Date(2017, 3, 09), 0, 0], [new Date(2017, 3, 10), 0, 0], [new Date(2017, 3, 11), 0, 0] ]); var options = { title: 'Private Access Only or Data Not Available', titleTextStyle: { color: '333333', fontSize: 16 }, vAxis: { viewWindow: { min:0, max: 1000 } }, xAxis: { viewWindow: { min:0 } }, legend : {position: 'none'} }; var chart = new google.visualization.LineChart(document.getElementById('chart_div')); chart.draw(data, options); } $(window).resize(function(){ drawChart1(); });