Spreadsheets are the OG resource for visualizing data with charts and graphs...unless you count chalkboards, I suppose.
Spreadsheets are built to churn through tons of data. And by using a few simple built-in tools, you can glean valuable insights from large chunks of data.
When dealing with small sets of data, you can often find answers and insights at a glance. But when your spreadsheets begin to reach into the hundreds and thousands of rows, charts can help condense all those numbers down to useable pieces of information...especially if you're presenting to people who aren't good with numbers!
Speaking of visuals:
- Here's a link to the demo spreadsheet with all our data and charts.
- And here's the video walkthrough of everything covered below:
How to Get the Data
Kaggle is a wonderful resource to find interesting data sets. We're using this video game sales dataset. To import it into a Google Sheet, all that we need to do is create a new Google Sheet by typing
sheets.new in the address bar of our browser.
File, Import from the menu.
You can now upload the .csv file you downloaded from Kaggle.
This will give you several import options. If you're following along and using a completely blank, new spreadsheet, simply select
Replace spreadsheet and it will pull everything in automatically.
If the data is cleaned well, and Kaggle datasets typically are, you can leave the separator to
This will give us a lovely 16,000+ row spreadsheet full of video game data. 😁
How to Insert Charts
From here, we need to select
Insert - Chart from the toolbar.
We'll be confronted with a blank chart in the middle of the screen and a Chart editor in the right sidebar.
Now let's make sure we're referencing the correct data range. Google Sheets is pretty smart, and if you click the little graph icon to the right of the data range form, it will suggest some ranges to use. In our case, the range we need is suggested:
We're going to find the sales by genre, so next let's select
Genre for our x-axis:
Sometimes Google Sheets will be not-so-smart. If there are a ton of series listed and a funky graph, you can simply remove all the series and manually add what you need:
Now click the
Aggregate button to group all the sales data for each genre, and select
NA-Sales as the Series to display the sales in millions of dollars on the y-axis.
And voilà! We've got a standard issue column bar chart. But we can do better. At the top right of our chart editor, we can
Customize the chart further by changing the appearance, font, gridlines and titles.
How to Customize the Chart
From the customization tab, we have a lot of options. We can style our chart by changing the background color and font. We can make it 3D, and we can choose whether or not to maximize the chart in the chart window.
We can then add chart titles, subtitles and axis titles and also modify the color and fonts.
Then, we can individually edit each
Series. In our example we're only using one series, but if there were more, you could modify each of their styles independently.
If you have a legend, you can modify those options in the next dropdown window:
Then there are customization options for both the horizontal and vertical axes.
And the last block of customization options is for gridlines and tick marks. These can be toggled on and off, and we can change the color and frequency of the grid and tick lines.
Once we're done, we now have a more stylized chart:
If we'd like to move this chart around, we can drag it throughout the current spreadsheet. Or, we can put it on its own dedicated sheet by clicking the three dots in the top right and selecting
Move to own sheet.
How to Publish the Chart
Here's an added bonus: you can actually publish the chart (or the whole worksheet) to the web. Select the
Publish Chart option from the dropdown on the chart shown above, or select
File, Share, Publish to web:
From here, you'll get to select what you wish to publish and how you want it displayed. For this example, we'll select the
Sales by Platform chart to be shared as an interactive chart.
This will generate a shareable link to the chart. It may take a few seconds to load, but once it does, you'll have a nice chart to easily share that is interactive. When you hover over the slices, it will display the percent of sales of the pie slice.
Here's the link to the chart that we just made.
Thanks for reading! I hope that you learned something in this beginners tutorial on data visualization in Google Sheets.
You can really do a whole lot using the basic built-in charts available in Google Sheets as well as Microsoft Excel. Charts remain an extremely helpful way to interpret large data sets.
Please check out my YouTube channel here & LinkedIn page here.
Have a great one!