經驗分享——利用Excel製作柱狀圖和堆積圖

經驗分享——利用Excel製作柱狀圖和堆積圖

LearningYard新學苑

經驗分享——利用Excel製作柱狀圖和堆積圖

經驗分享——利用Excel製作柱狀圖和堆積圖

經驗分享——利用Excel製作柱狀圖和堆積圖

02:19

來自LearningYard學苑

分享興趣,傳播快樂,增長見聞,留下美好!親愛的您,這裡是LearningYard新學苑。今天小編為大家帶來經驗分享——利用Excel製作柱狀圖和堆積圖。

在資料大爆發的今天,人們不僅僅滿足於觀察資料本身,更多是對資料進行探索、挖掘、轉換,然後視覺化資料,使人們方便快捷的觀察整個資料的分佈的規律,趨勢等。資料視覺化的工具和軟體有很多,今天小編給大家分享的是用Excel做資料視覺化。

01

柱狀圖

首先,新建一個Excel,用資料透視表計算出各地平均薪資,點選插入,然後點選資料透視表中的表格和區域,點選確定。

經驗分享——利用Excel製作柱狀圖和堆積圖

把不同欄位拖進不同的區域,將地點欄位拖進行將年薪欄位拖進值,單擊求和項年薪,在計算型別中選擇平均值,點選確定。

經驗分享——利用Excel製作柱狀圖和堆積圖

選中其中一欄年薪欄位,點選右鍵選擇排序並設為降序。

經驗分享——利用Excel製作柱狀圖和堆積圖

選中需要的區域,點選插入點選圖表,插入柱形圖。

經驗分享——利用Excel製作柱狀圖和堆積圖

柱形圖會自動生成,刪除不必要的欄位。

經驗分享——利用Excel製作柱狀圖和堆積圖

全選柱狀圖,單擊右鍵,選擇設定資料系列格式,調整柱子間的間距。

經驗分享——利用Excel製作柱狀圖和堆積圖

點選右上角的加號,取消勾選網格線即可刪除背景網格線。

經驗分享——利用Excel製作柱狀圖和堆積圖

勾選座標軸,在設定繪圖區格式中點選實線,併為其設定顏色,即可將座標軸實線化。

經驗分享——利用Excel製作柱狀圖和堆積圖

選中需要突出的柱子,在設定繪圖格式中點選填充,點選純色填充,設定柱狀圖顏色,可以選擇設定突出色。

經驗分享——利用Excel製作柱狀圖和堆積圖

02

堆積柱形圖

重複前面的步驟。

將第三個欄位拖進行,將第二個欄位拖進列,將第二個欄位拖進值。框選需要的區域,插入堆積柱形圖。

經驗分享——利用Excel製作柱狀圖和堆積圖

刪除不必要的欄位,將座標軸實線化,設定柱狀圖顏色。點選設計,選中新增圖表,點選座標軸標題,分別新增縱軸標題,新增橫軸標題,並修改標題名稱。

經驗分享——利用Excel製作柱狀圖和堆積圖

經驗分享——利用Excel製作柱狀圖和堆積圖

Share interest, spread happiness, increase knowledge, leave good! Dear, this is LearningYard‘s new school。 Today xiaobian brings you experience to share —— using Excel to make bar charts and stack charts。

In today’s data explosion, people are not only satisfied with observing the data itself, but also explore, mine and transform the data, and then visualize the data, so that people can easily observe the distribution law and trend of the whole data。 There are many data visualization tools and software, today xiaobian to share with you is to use Excel to do data visualization。

A histogram

First, create a new Excel, use the PivotTable to calculate the average salary for each location, click Insert, then click the tables and fields in the PivotTable, and click OK。

Drag different fields into different areas, drag location field to Drag annual salary field into value, click sum annual salary, select average in calculation type, and click OK。

Select one of the salary fields, right-click, select Sort and set it to descending order。

Select the desired area and click Insert click chart to insert bar chart。

The bar chart is automatically generated, removing unnecessary fields。

Select all the columns, right-click, select Set Data series Format, and adjust the spacing between the columns。

Click the plus sign with the top corner and uncheck the grid line to delete the background grid line。

To make the axis solid, select the axis, click the solid line in the Format of the Set drawing area, and set the color for it。 Select the column to be highlighted, click Fill in Set drawing Format, click Solid Color Fill, and set bar chart color。 You can choose to set highlight color。

Pile-up histogram

Repeat the previous steps。

Drag the third field forward, the second field into the column, and the second field into the value。 Box the desired area and insert the stack histogram。

Delete unnecessary fields, line up the axes, and set the bar chart color。 Click Design, select Add Chart, click the axis title, add the vertical axis title, add the horizontal axis title, and modify the title name。

If you have a unique idea for today‘s article, feel free to leave a message and let’s meet tomorrow。 I wish you a happy and happy day!

如果您對今天的文章有獨特的想法,歡迎給我們留言,讓我們相約明天,祝您今天過得開心快樂!

-END

參考資料:百度百科、商業資料科學導論課堂影片資料、谷歌翻譯。

本文由LearningYard新學苑原創,部分圖片及文字來源於網路,若有侵權請聯絡刪除。