Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
197 views
in Technique[技术] by (71.8m points)

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.

question from:https://stackoverflow.com/questions/47915798/how-to-edit-legend-labels-in-google-spreadsheet-plots

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...