Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to edit legend labels in google spreadsheet plots?

I'm trying to plot some data in Google spreadsheet:

enter image description here

And as you may see all of the series are in a same column and I can't use the any of the rows as headers. My plot looks like this:

enter image description here

I would appreciate if you could help me know how I can edit/add legend labels.

like image 347
Foad S. Farimani Avatar asked Dec 20 '17 23:12

Foad S. Farimani


People also ask

Can you label a legend in Google Sheets?

Google Sheets does provide the option to include legends with labels in a chart. However, the default labels provided may not exactly appear the way you want them. This tutorial will show you how to label legends in Google Sheets charts if they're not already displayed.

How do I label a series in Google Sheets legend?

Double-click on the symbols in your legend, then double-click on the symbol for the series you would like to label; you should be able to directly enter your legend label now. You can do further text formatting using the chart editor on the right.

How do I remove the legend from a pie chart in Google Sheets?

The Legend is hidden by setting the legend property to none in the Google Chart Options. title: 'USA City Distribution', legend: 'none' // Hides the Legend.


2 Answers

Unfortunately I don't think the graphs were intended for your data format.

The only way I've been able to work out how to add a header is by reformatting my data so I have the header at the top of my ranges.

So I suggest you split your data into separate columns so you have;

D2:D4, E2:E4, F2:F4 etc with D1, E1, and F1 as your header and then selecting "Use row 1 as your headers." From the data menu.

Alternatively, you could add labels to the series themselves. Although not ideal, it could be quicker than reformatting your data. On the data menu, click on the three dots of a data series to bring up a menu that allows you to add a label. Unfortunately this needs to be a cell so you'll have to have that header on your sheet some where.

like image 157
metoyou Avatar answered Sep 28 '22 23:09

metoyou


I had the same question this year (2021), and it looks like there's support for it now. In short, you just have to double-click on the empty legend item for the series, and it'll give you a place to put text, directly in the chart.

Here's what my chart looked like (with no series titles): chart with blank series titles

If you double-click on one, you'll get a small text input area. small text input area

Type in your series name and then press enter or click outside of the input area. series label text

Repeat this for each series, and you should be good to go. labeled series

like image 35
Douglas Manley Avatar answered Sep 28 '22 22:09

Douglas Manley