Google Charts - Basic Stepped Area Chart

You are Here:

How to Draw a Basic Stepped Area Chart?

Please wait google chart is loading...

In this example, we will draw a basic stepped area chart. Please hover the steps in the above chart to view particular details.

Example

HTML Online Editor
<!DOCTYPE html> <html lang="en-US"> <head> <script src="https://www.gstatic.com/charts/loader.js"></script> </head> <body> <div id="point"> </div> <script> google.charts.load('current', {'packages':['corechart']}); google.charts.setOnLoadCallback(drawChart); function drawChart() { var data = google.visualization.arrayToDataTable([ ['Month', 'USA', 'China'], ['Jan', 30, 35], ['Feb', 25, 30], ['Mar', 15, 26], ['Apr', 10, 20] ]); var options = { title: 'USA vs China weather report', width: 600, height: 400, vAxis: { title: 'Weather in celsius' }, hAxis: { title: 'Months' } }; var chart = new google.visualization.SteppedAreaChart(document.getElementById('point')); chart.draw(data, options); } </script> </body> </html>

Reminder

Hi Developers, we almost covered 98% of Google Charts Tutorials with examples for quick and easy learning.

We are working to cover every Single Concept in Google Charts.

Please do google search for:

Join Our Channel

Join our telegram channel to get an instant update on depreciation and new features on HTML, CSS, JavaScript, jQuery, Node.js, PHP and Python.

This channel is primarily useful for Full Stack Web Developer.

Share this Page

Meet the Author