excel图表显示数据源_在Excel图表中显示隐藏行中的数据

excel图表显示数据源

You can add a chart in Excel, based on worksheet data, but if you filter the data, and rows are hidden, that data also disappears from the chart. See how to prevent that problem from happening.

您可以基于工作表数据在Excel中添加图表,但是如果您过滤数据并且行被隐藏,则该数据也会从图表中消失。 了解如何防止该问题的发生。

销售图 (Sales Chart)

In this example, there is a line chart based on worksheet data, from cells A1:C9.

在此示例中,有一个基于工作表数据的折线图,来自单元格A1:C9。

《excel图表显示数据源_在Excel图表中显示隐藏行中的数据》

过滤图表数据 (Filter the Chart Data)

The chart looks fine, but if you filter the data, some of the worksheet rows are hidden, and that data also disappears from the chart.

图表看起来不错,但是如果您过滤数据,则某些工作表行将被隐藏,并且该数据也将从图表中消失。

In some cases, you might like that feature, and not mind that the chart changes.

在某些情况下,您可能会喜欢该功能,而不用担心图表会发生变化。

In the example shown below, only the West region’s data is visible on the sheet and in the chart.

在下面显示的示例中,工作表和图表中仅可见西部地区的数据。

《excel图表显示数据源_在Excel图表中显示隐藏行中的数据》

所有数据消失 (All the Data Disappears)

However, there are some situations when you want the chart to show the data, even if the data is hidden. In the next example, columns A:C are hidden, so that they don’t distract from the chart.

但是,在某些情况下,即使隐藏了数据,也希望图表显示数据。 在下一个示例中,A:C列被隐藏,因此它们不会分散图表的注意力。

Oops! Now there’s nothing in the chart. That’s not the effect that you were going for.

糟糕! 现在图表中没有任何内容。 那不是您想要的效果。

《excel图表显示数据源_在Excel图表中显示隐藏行中的数据》

显示隐藏行中的数据 (Show Data From Hidden Rows)

If you want your chart to show all the data, even if some of the source data is hidden, you can change one of the chart settings.

如果您希望图表显示所有数据,即使某些源数据被隐藏,也可以更改图表设置之一。

The Excel 2010 instructions are shown below, and you can click here for instructions to show hidden data in Excel 2003 charts.

Excel 2010的说明如下所示,您可以单击此处以获取在Excel 2003图表中显示隐藏数据的说明。

要在Excel 2010中更改设置,请执行以下操作: (To change the setting in Excel 2010:)
  • Click on the chart to select it, and on the Excel Ribbon, under Chart Tools, click the Design tab

    单击图表以将其选中,然后在Excel功能区上的“图表工具”下,单击“设计”选项卡。

  • Click the Select Data command

    单击选择数据命令

《excel图表显示数据源_在Excel图表中显示隐藏行中的数据》

  • Click the Hidden and Empty Cells button

    单击隐藏和空单元格按钮

《excel图表显示数据源_在Excel图表中显示隐藏行中的数据》

  • Add a check mark to ‘Show data in hidden rows and columns’

    在“在隐藏的行和列中显示数据”上添加复选标记

《excel图表显示数据源_在Excel图表中显示隐藏行中的数据》

  • Click OK, twice, to close the dialog boxes

    单击确定两次,以关闭对话框

Now, you can hide rows or columns, and the chart data will remain visible.

现在,您可以隐藏行或列,并且图表数据将保持可见。

《excel图表显示数据源_在Excel图表中显示隐藏行中的数据》

测试隐藏数据功能 (Test the Hidden Data Feature)

To see the difference this option setting makes, test the feature in this embedded Excel file. Filter the Region, and one chart continues to show all the data, but the other chart has hidden data.

若要查看此选项设置的不同,请测试此嵌入式Excel文件中的功能。 过滤区域,一个图表继续显示所有数据,但另一图表具有隐藏数据。

演示地址

观看图表视频中的显示隐藏数据 (Watch the Show Hidden Data in Chart Video)

To see the steps for changing the chart settings in Excel 2010, to show data from hidden rows in Excel chart, watch this short video.

若要查看在Excel 2010中更改图表设置的步骤,以显示Excel图表中隐藏行中的数据,请观看此简短视频。

演示地址

翻译自: https://contexturesblog.com/archives/2012/05/10/show-data-from-hidden-rows-in-excel-chart/

excel图表显示数据源

    原文作者:culiao2169
    原文地址: https://blog.csdn.net/culiao2169/article/details/107991573
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞