![excel批量制作条形码](https://i-blog.csdnimg.cn/blog_migrate/eb516f69daa01a3c963af351bf954f1b.png)
excel批量制作条形码
![Excel Logo on a gray background](https://i-blog.csdnimg.cn/blog_migrate/f472fd4f2411e03fd0aed3c44404cd89.png)
A bar chart (or a bar graph) is one of the easiest ways to present your data in Excel, where horizontal bars are used to compare data values. Here’s how to make and format bar charts in Microsoft Excel.
条形图(或条形图)是在Excel中显示数据的最简单方法之一,其中水平条用于比较数据值。 以下是在Microsoft Excel中制作和设置条形图格式的方法。
在Microsoft Excel中插入条形图 (Inserting Bar Charts in Microsoft Excel)
While you can potentially turn any set of Excel data into a bar chart, It makes more sense to do this with data when straight comparisons are possible, such as comparing the sales data for a number of products. You can also create combo charts in Excel, where bar charts can be combined with other chart types to show two types of data together.
尽管您可以将任意一组Excel数据转换为条形图,但在可以进行直接比较的情况下使用数据进行处理(例如比较多个产品的销售数据)更有意义。 您还可以在Excel中创建组合图 ,其中条形图可以与其他图表类型组合在一起以一起显示两种类型的数据。
We’ll be using fictional sales data as our example data set to help you visualize how this data could be converted into a bar chart in Excel. For more complex comparisons, alternative chart types like histograms might be better options.
我们将使用虚构的销售数据作为示例数据集,以帮助您可视化如何将该数据转换为Excel中的条形图。 对于更复杂的比较,直方图等其他图表类型可能是更好的选择。
To insert a bar chart in Microsoft Excel, open your Excel workbook and select your data. You can do this manually using your mouse, or you can select a cell in your range and press Ctrl+A to select the data automatically.
要在Microsoft Excel中插入条形图,请打开Excel工作簿并选择数据。 您可以使用鼠标手动执行此操作,也可以选择范围内的单元格,然后按Ctrl + A自动选择数据。
![Example sales data, selected in a Microsoft Excel worksheet](https://i-blog.csdnimg.cn/blog_migrate/9e2f0bde760b96cf47d35d061e657a52.png)
Once your data is selected, click Insert > Insert Column or Bar Chart.
选择数据后,单击插入>插入柱形图或条形图。
Various column charts are available, but to insert a standard bar chart, click the “Clustered Chart” option. This chart is the first icon listed under the “2-D Column” section.
可以使用各种柱形图,但是要插入标准条形图,请单击“群集图”选项。 此图表是“二维列”部分下列出的第一个图标。
![Press Insert > Insert Column or Bar Chart > Clustered Chart to insert a standard bar chart into Excel](https://i-blog.csdnimg.cn/blog_migrate/5426fea060ce825d1588160aa84276e8.png)
Excel will automatically take the data from your data set to create the chart on the same worksheet, using your column labels to set axis and chart titles. You can move or resize the chart to another position on the same worksheet, or cut or copy the chart to another worksheet or workbook file.
Excel将使用列标签设置轴和图表标题,自动从数据集中获取数据以在同一工作表上创建图表。 您可以将图表移动或调整到同一工作表上的另一个位置,或者将图表剪切或复制到另一个工作表或工作簿文件。
For our example, the sales data has been converted into a bar chart showing a comparison of the number of sales for each electronic product.
在我们的示例中,销售数据已转换为条形图,该条形图显示了每种电子产品的销售数量的比较。
![A sample bar chart in Microsoft Excel, showing the number of sales for a number of electronic products, with the data range beside it](https://i-blog.csdnimg.cn/blog_migrate/47cde167f0af29c84a006d8b470228bf.png)
For this set of data, mice were bought the least with 9 sales, while headphones were bought the most with 55 sales. This comparison is visually obvious from the chart as presented.
对于这组数据,鼠标的购买量最少,有9笔交易,而耳机的购买量最多,有55笔交易。 从所显示的图表中,这种比较在视觉上很明显。
在Microsoft Excel中格式化条形图 (Formatting Bar Charts in Microsoft Excel)
By default, a bar chart in Excel is created using a set style, with a title for the chart extrapolated from one of the column labels (if available).
默认情况下,使用设置样式创建Excel中的条形图,并从一个列标签(如果有)中推断出该图的标题。
You can make many formatting changes to your chart, should you wish to. You can change the color and style of your chart, change the chart title, as well as add or edit axis labels on both sides.
您可以根据需要对图表进行多种格式更改。 您可以更改图表的颜色和样式,更改图表标题,以及在两侧添加或编辑轴标签。
It’s also possible to add trendlines to your Excel chart, allowing you to see greater patterns (trends) in your data. This would be especially important for sales data, where a trendline could visualize decreasing or increasing number of sales over time.
也可以将趋势线添加到Excel图表中 ,使您可以查看数据中的更大模式(趋势)。 这对于销售数据尤其重要,在该数据中趋势线可以直观地显示随着时间的推移减少或增加的销售数量。
更改图表标题文本 (Changing Chart Title Text)
To change the title text for a bar chart, double-click the title text box above the chart itself. You’ll then be able to edit or format the text as required.
要更改条形图的标题文本,请双击图表本身上方的标题文本框。 然后,您将能够根据需要编辑或设置文本格式。
![Double-click the chart title text box in an Excel bar chart to change the title text](https://i-blog.csdnimg.cn/blog_migrate/f547d7ccaa3f84245ed0732018a35048.png)
If you want to remove the chart title completely, select your chart and click the “Chart Elements” icon on the right, shown visually as a green, “+” symbol.
如果要完全删除图表标题,请选择图表,然后单击右侧的“图表元素”图标,以绿色“ +”符号直观显示。
From here, click the checkbox next to the “Chart Title” option to deselect it.
从此处,单击“图表标题”选项旁边的复选框以取消选择它。
![Tap the green, plus icon ("Chart Elements") next to your Excel chart, then press the "Chart Title" checkbox to add or remove the chart title.](https://i-blog.csdnimg.cn/blog_migrate/457f1348de6a687bf2e82029e5e8c494.png)
Your chart title will be removed once the checkbox has been removed.
一旦删除复选框,您的图表标题将被删除。
添加和编辑轴标签 (Adding and Editing Axis Labels)
To add axis labels to your bar chart, select your chart and click the green “Chart Elements” icon (the “+” icon).
要将轴标签添加到条形图中,请选择图表,然后单击绿色的“图表元素”图标(“ +”图标)。
From the “Chart Elements” menu, enable the “Axis Titles” checkbox.
从“图表元素”菜单中,启用“轴标题”复选框。
![Press the green "Chart Elements" icon next to your chart, then click to enable the "Axis Titles" checkbox to add or remove axis labels](https://i-blog.csdnimg.cn/blog_migrate/3ab74ec26ed2e39105a5ae2789b540be.png)
Axis labels should appear for both the x axis (at the bottom) and the y axis (on the left). These will appear as text boxes.
x轴(在底部)和y轴(在左侧)都应显示轴标签。 这些将显示为文本框。
To edit the labels, double-click the text boxes next to each axis. Edit the text in each text box accordingly, then select outside of the text box once you’ve finished making changes.
要编辑标签,请双击每个轴旁边的文本框。 相应地编辑每个文本框中的文本,然后在完成更改后在文本框外部选择。
![Axis labels shown on an example Excel bar chart](https://i-blog.csdnimg.cn/blog_migrate/800e67cb255a0b7f99fa50b30c623a01.png)
If you want to remove the labels, follow the same steps to remove the checkbox from the “Chart Elements” menu by pressing the green, “+” icon. Removing the checkbox next to the “Axis Titles” option will immediately remove the labels from view.
如果要删除标签,请按照相同的步骤通过按绿色的“ +”图标从“图表元素”菜单中删除复选框。 删除“轴标题”选项旁边的复选框将立即从视图中删除标签。
更改图表样式和颜色 (Changing Chart Style and Colors)
Microsoft Excel offers a number of chart themes (named styles) that you can apply to your bar chart. To apply these, select your chart and then click the “Chart Styles” icon on the right that looks like a paint brush.
Microsoft Excel提供了许多图表主题(命名样式),您可以将其应用于条形图。 要应用这些内容,请选择图表,然后单击右侧看起来像画笔的“图表样式”图标。
![To change the chart styles for an Excel bar chart, select the chart, then press the "Chart Styles" icon](https://i-blog.csdnimg.cn/blog_migrate/2bd4d961b481df94cd7704eb04d1b552.png)
A list of style options will become visible in a drop-down menu under the “Style” section.
样式选项列表将在“样式”部分下的下拉菜单中显示。
Select one of these styles to change the visual appearance of your chart, including changing the bar layout and background.
选择这些样式之一以更改图表的视觉外观,包括更改条形布局和背景。
![Under the "Style" section of the "Chart Styles" menu, select one of the visual chart style options to apply it to your chart](https://i-blog.csdnimg.cn/blog_migrate/b7a7c95943b1e45bf37211e3bfaf9d50.png)
You can access the same chart styles by clicking the “Design” tab, under the “Chart Tools” section on the ribbon bar.
您可以通过单击功能区栏“图表工具”部分下的“设计”选项卡来访问相同的图表样式。
The same chart styles will be visible under the “Chart Styles” section—clicking any of the options shown will change your chart style in the same way as the method above.
相同的图表样式将在“图表样式”部分下显示-单击显示的任何选项将以与上述方法相同的方式更改图表样式。
![Excel chart styles are also visible by clicking the "Design" tab on the ribbon bar, with styles visible under the "Chart Styles" section](https://i-blog.csdnimg.cn/blog_migrate/de74a18a13e3d0b0941e46a260c9cd9e.png)
You can also make changes to the colors used in your chart in the “Color” section of the Chart Styles menu.
您还可以在“图表样式”菜单的“颜色”部分中更改图表中使用的颜色。
Color options are grouped, so select one of the color palette groupings to apply those colors to your chart.
颜色选项已分组,因此请选择调色板分组之一以将这些颜色应用于图表。
![Click the "Color" tab under the "Chart Style" options menu to change the colors used in your Excel bar chart](https://i-blog.csdnimg.cn/blog_migrate/aaaeaa4c0e588746934ec54b93b35110.png)
You can test each color style by hovering over them with your mouse first. Your chart will change to show how the chart will look with those colors applied.
您可以通过先将鼠标悬停在每种颜色上来测试每种颜色。 您的图表将发生变化,以显示应用这些颜色后图表的外观。
更多条形图格式设置选项 (Further Bar Chart Formatting Options)
You can make further formatting changes to your bar chart by right-clicking the chart and selecting the “Format Chart Area” option.
您可以通过右键单击图表并选择“设置图表区域格式”选项来对条形图进行进一步的格式更改。
![You can make further formatting changes to an Excel bar chart by right-clicking the chart and clicking the "Format Chart Area" option](https://i-blog.csdnimg.cn/blog_migrate/f59f62d4733cb445b2b1c1bb0c63bc4f.png)
This will bring up the “Format Chart Area” menu on the right. From here, you can change the fill, border, and other chart formatting options for your chart under the “Chart Options” section.
这将弹出右侧的“格式图表区域”菜单。 在这里,您可以在“图表选项”部分下更改图表的填充,边框和其他图表格式设置选项。
![The "Chart Options" section of the "Format Chart Area" menu, allowing you to make further formatting changes to an Excel chart](https://i-blog.csdnimg.cn/blog_migrate/45c5b3710f1a9c0842b261070393245d.png)
You can also change how text is displayed on your chart under the “Text Options” section, allowing you to add colors, effects, and patterns to your title and axis labels, as well as change how your text is aligned on the chart.
您还可以在“文本选项”部分下更改文本在图表上的显示方式,从而可以为标题和轴标签添加颜色,效果和图案,以及更改文本在图表上的对齐方式。
![The "Text Options" section of the "Format Chart Area" menu, allowing you to make further text formatting changes to an Excel chart](https://i-blog.csdnimg.cn/blog_migrate/f5d5cc4b52e25f436a91095c8a682d5e.png)
If you want to make further text formatting changes, you can do this using the standard text formatting options under the “Home” tab while you’re editing a label.
如果要进一步更改文本格式,可以在编辑标签时使用“主页”选项卡下的标准文本格式选项来进行。
![The "Home" tab on the Excel ribbon bar, with various text formatting options available](https://i-blog.csdnimg.cn/blog_migrate/aa78b7d39e79eae2419615181dfd944b.png)
You can also use the pop-up formatting menu that appears above the chart title or axis label text boxes as you edit them.
编辑它们时,还可以使用显示在图表标题或轴标签文本框上方的弹出式格式菜单。
![The pop-up text box formatting menu in Excel](https://i-blog.csdnimg.cn/blog_migrate/5eed4b8c1e1f91eebf68a801a4862cbe.png)
翻译自: https://www.howtogeek.com/678738/how-to-make-a-bar-chart-in-microsoft-excel/
excel批量制作条形码