Google Charts

Size
3,578 Kb
Views
26,312

How do I make an google charts?

What is a google charts? How do you make a google charts? This script and codes were developed by Peter Appleyard on 06 October 2022, Thursday.

Google Charts Previews

Google Charts - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Google Charts</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="container"> <div class="wrapper"> <h1>Customers Needing Our Help</h1> <div class="indicatorGraph"> <div class="arrow"><i class="fa fa-chevron-up"></i></div> <div class="number up">(+20)</div> </div> <div class="indicatorGraph hidden"> <div class="arrow"><i class="fa fa-chevron-down"></i></div> <div class="number down">(-20)</div> </div> <div class="customerNumber">120</div> </div> <div class="clear"></div> <div id="chart_div" style="width: 1620px; height: 500px;"></div>
</div> <script src='https://www.gstatic.com/charts/loader.js'></script> <script src="js/index.js"></script>
</body>
</html>

Google Charts - Script Codes CSS Codes

@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,600);
@import url(https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css);
* { box-sizing: border-box; font-family: 'Open Sans', sans-serif;
}
.hidden { display: none;
}
.container { width: 1620px; height: 914px; background-color: #f0eeea;
}
.container #chart_div { margin-top: -40px;
}
.container .customerNumber { font-size: 340px; line-height: 310px; float: left; font-weight: 600; color: #6e6259; letter-spacing: -20px;
}
.container .indicatorGraph { float: left; width: 150px;
}
.container .indicatorGraph .arrow { display: block;
}
.container .indicatorGraph .arrow i { font-size: 115px; line-height: 150px;
}
.container .indicatorGraph .arrow i.fa-chevron-up { color: #669740;
}
.container .indicatorGraph .arrow i.fa-chevron-down { color: #de3d30;
}
.container .indicatorGraph .number { font-size: 48px; line-height: 40px; margin-top: -20px;
}
.container .indicatorGraph .number.up { color: #669740;
}
.container .indicatorGraph .number.down { color: #de3d30;
}
.container .wrapper { position: relative; z-index: 5000; padding: 30px 50px;
}
.container .wrapper h1 { font-weight: 400; margin: 0; padding: 0; color: #00000a; font-size: 50px;
}
.clear { clear: both; display: block; overflow: hidden; visibility: hidden; width: 0; height: 0;
}

Google Charts - Script Codes JS Codes

google.charts.load('current', {'packages':['corechart']});
google.charts.setOnLoadCallback(drawVisualization);
function drawVisualization() { // Some raw data (not necessarily accurate) var data = google.visualization.arrayToDataTable([ ['time', 'Current Calls (AU)', 'Average Calls (AU)'], ['TUE 07.00'	,	30	,	60]	, ['TUE 09.00'	,	60	,	80]	, ['TUE 11.00'	,	110	,	80]	, ['TUE 13.00'	,	180	,	150]	, ['TUE 15.00'	,	80	,	50]	, ['TUE 17.00'	,	28	,	35]	, ['TUE 19.00'	,	50	,	80]	, ['WED 07.00'	,	40	,	60]	, ['WED 09.00'	,	90	,	80]	, ['WED 11.00'	,	110	,	80]	, ['WED 13.00'	,	140	,	150]	, ['WED 15.00'	,	190	,	50]	, ['WED 17.00'	,	130	,	90]	, ['WED 19.00'	,	80	,	60]	, ['THU 07.00'	,	30	,	80]	, ['THU 09.00'	,	60	,	80]	, ['THU 11.00'	,	110	,	150]	, ['THU 13.00'	,	230	,	180]	, ['THU 15.00'	,	80	,	35]	, ['THU 17.00'	,	28	,	80]	, ['THU 19.00'	,	50	,	150]	, ['FRI 07.00'	,	40	,	60]	, ['FRI 09.00'	,	90	,	80]	, ['FRI 11.00'	,	110	,	80]	, ['FRI 13.00'	,	140	,	150]	, ['FRI 15.00'	,	190	,	160]	, ['FRI 17.00'	,	130	,	35]	, ['FRI 19.00'	,	80	,	80]
]);
var options = { seriesType: 'bars', backgroundColor: '#f0eeea', colors: ['#00a1df', '#014c45'], series: {1: {type: 'line'}}, chartArea:{left:100,width:'1450'}, legend:{ position:'top', alignment:'end' }, bar:{ groupWidth: 8 }, hAxis:{ textStyle: { color: '#333333', }, slantedText: 'true', slantedTextAngle: '90', }
};
var chart = new google.visualization.ComboChart(document.getElementById('chart_div'));
chart.draw(data, options);
}
Google Charts - Script Codes
Google Charts - Script Codes
Home Page Home
Developer Peter Appleyard
Username whodaman
Uploaded October 06, 2022
Rating 3
Size 3,578 Kb
Views 26,312
Do you need developer help for Google Charts?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Peter Appleyard (whodaman) Script Codes
Create amazing sales emails with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!