简体   繁体   English

如何使用 2 列作为 X 和 Y 值和第 3 列在谷歌表格中分散 plot 以获得该点的颜色?

[英]How to make scatter plot in google sheets using 2 columns as X and Y values and the 3rd columns to get color of that point?

I have 3 columns in a google spreadsheet我在谷歌电子表格中有 3 列

Runs    Balls   Result
24      24      W
50      20      W
10      5       L
12      10      L
5       2       L

Now I want a scatter plot to be made, such that Runs and Balls are the X and Y axes, and the color of the point is determined by the values in the column Result.现在我想要一个散点图 plot ,这样 Runs 和 Balls 是 X 和 Y 轴,点的颜色由 Result 列中的值确定。

How do I achieve this?我如何实现这一目标?

You could separate your second column (y-value, "Balls") into two separate columns, depending on if the Result is W or L. In other words, make a chart based on three columns instead of two.您可以将第二列(y 值,“球”)分成两个单独的列,具体取决于结果是 W 还是 L。换句话说,基于三列而不是两列制作图表。 This way, two different colors will be assigned automatically when the chart is generated.这样,在生成图表时会自动分配两个不同的 colors。 (Later, you can change these colors by double-clicking on the chart to get to Chart Editor -> Customize -> Series -> Format -> Color). (稍后,您可以通过双击图表来更改这些 colors 以进入图表编辑器 -> 自定义 -> 系列 -> 格式 -> 颜色)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Google 表格查找 2 列和第 3 列的总和值 - Google Sheets lookup 2 columns and sum values of 3rd column 如何从 Google 表格中的一对列中获取唯一值? - How to get unique values from a pair of columns in Google Sheets? Google 表格:如何计算 2 列中的匹配值 - Google Sheets: How to Count Matching Values in 2 Columns 如果其他 3 列中的值匹配,则更改 A 列的颜色 - 谷歌表 - Change the color of column A, if values match in 3 other columns - google sheets 如何在 Google 表格中重复数据集(多列)x 次 - How to Repeat a Data Set (several columns) x times in Google Sheets 谷歌工作表排序并获取多列的唯一值 - Google sheets Sort and Get Unique values of multiples columns 如何获取脚本以将2个变量的总和添加到表格中的第3列 - How to get a Script to add the sum of 2 variables to a 3rd column in Sheets 尝试使用谷歌脚本编辑器在谷歌表格中获取日期格式以显示为具有相关后缀的第一、第二、第三等 - Trying to get date format in Google Sheets to display as 1st, 2nd, 3rd etc with the relevant suffix using google scripts editor 使用谷歌表格添加列 - Adding Columns using google sheets Google表格x轴日期和y轴多列来自源数据中一列中的数据 - Google Sheets x axis date and y axis multiple columns from data in one column in the source data
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM