コースのチャプター
Training · Track 13. Whiteboards · Chapter 13.3 of 4
13.3 グラフ 3:32
グラフを挿入してデータを与え、種類を変更し、データを選択し、軸の書式を設定し、Excel からグラフをインポートします。
Holarch 2.35 の画面です。
学習内容
- グラフを挿入し、グラフのデータに、入力、貼り付け、ファイルからのインポートのいずれかでデータを与える
- 積み上げや 100% 積み上げを含め、グラフの種類を変更する
- データの選択で行と列を切り替え、系列を並べ替える
- グラフ要素をオンにし、軸の書式設定で軸の範囲と単位を設定する
- Excel ブックからグラフをインポートする
Bike-Share Dock のコンセプトホワイトボードに、利用状況のグラフのボードを追加します。縦棒グラフを挿入してデータを編集し、Excel シートから貸出数をインポートし、グラフの種類の変更ギャラリーで積み上げ縦棒グラフに切り替え(100% 積み上げ、横棒、折れ線、円、ドーナツ、散布図のプレビューもあります)、データの選択で系列を並べ替えて切り替え、グラフ要素でデータラベルをオンにして凡例を移動し、軸の書式設定で数値軸の範囲と単位を設定し、Excel からグラフをインポートで Excel ブックから折れ線グラフと円グラフをインポートします。
プロジェクトファイル
- 開始時のプロジェクト (.holarch.json。プロジェクトを管理 → プロジェクトファイル ▾ → プロジェクトをインポート (.json)…)
- 完成時のプロジェクト (.holarch.json。プロジェクトを管理 → プロジェクトファイル ▾ → プロジェクトをインポート (.json)…)
動画は holarch.app から再生されます。プライバシーポリシーをご覧ください。
演習
Bike-Share Dock を使って、Holarch で実際に操作します。
- チャプターの開始ファイルと Dock Concept ホワイトボードを開きます。ボードの帯にある + をクリックします。
- 表とグラフを開いて縦棒をクリックします。グラフをダブルクリックし、ファイルからインポート…をクリックして、ラベルの列と数値の列が 2 つあるお手元のブックを選択します。
- グラフを右クリック → グラフの種類の変更… → 積み上げ縦棒 → OK。
- グラフセクションでデータの選択…をクリックし、行/列の切り替えを 2 回試し、系列を 1 つ上へ移動して OK をクリックします。
- データラベルにチェックを入れ、凡例を上に設定し、数値軸をクリックして最大値と主を設定します。
- Excel からグラフをインポート…をクリックし、グラフを含むブックからグラフを挿入します。
ボードに、データラベル付き、凡例が上、軸の範囲が固定された積み上げ縦棒グラフと、Excel からインポートしたグラフが 1 つあれば完了です。
確認問題
- 100% 積み上げグラフが積み上げグラフより適しているのはどのようなときですか。
- 行/列の切り替えは何をしますか。
- 軸の範囲を設定した後で、自動に戻すにはどうしますか。
解答を表示
100% 積み上げグラフが積み上げグラフより適しているのはどのようなときですか。
合計より割合が重要なときです。各バーが全体の高さを占め、セグメントが各系列の割合を示します。
行/列の切り替えは何をしますか。
系列とカテゴリを入れ替えます。行が系列に、列がカテゴリになり、または逆になります。
軸の範囲を設定した後で、自動に戻すにはどうしますか。
軸の書式設定でボックスを空にします。
関連資料
トランスクリプト
トランスクリプトを表示 (ナレーションと画面の内容)
Introduction
Chapter three: charts. A whiteboard chart draws its own data, which you type, paste or import, and you format it the way you would in a spreadsheet.
In this chapter you build a board of usage charts for the dock.
A chart and its data
The charts get a board of their own. Click the plus in the Boards strip under the board: the new board opens as a second tab.
On screen: Boards strip → +.
Open the Tables and Charts panel, and click Column. The chart is added in the middle of the view, with sample data.
On screen: Tables and Charts panel → Column.
Double-click the chart to open Chart Data. Labels go in the first column and series names in the first row. You can type in the grid, add rows and series, or paste rows copied from a spreadsheet.
On screen: Double-click the chart → Chart Data.
Our rental figures are in a workbook. Click Import from File, and choose Dock Usage.
On screen: Import from File… → Dock Usage.xlsx.
The workbook has three sheets. Choose Rentals. The preview shows six months and two series, weekday and weekend. Click Use Imported Data, then Done.
On screen: Sheet: Rentals → Use Imported Data → Done.
Chart types
Right-click the chart, and choose Change Chart Type. The gallery shows your own data in every type.
On screen: Right-click → Change Chart Type….
Stacked column stacks each month's series, so the bar shows the total. One hundred percent stacked compares the shares. Bar turns the chart on its side, and line, pie, donut and scatter are here too.
On screen: Gallery: Stacked Column, 100% Stacked Column, Bar, Line, Pie, Donut, Scatter.
Choose Stacked Column, and click OK.
On screen: Stacked Column → OK.
Select Data
Select Data, in the Chart section, chooses what the chart shows. Switch Row and Column turns the months into the series and the series into the categories. Switch it back.
On screen: Chart section → Select Data… → Switch Row/Column, twice.
Legend entries lists the series. Select Weekend, and click Move Up: weekend now sits at the bottom of each stack, and keeps its color. Click OK.
On screen: Weekend → Move Up → OK.
Format the chart
Chart Elements turns the parts of the chart on and off. Tick Data labels, and set the legend position to Top.
On screen: Chart Elements → Data labels; Legend position: Top.
Click the numbers of the value axis to select the axis. A dashed box marks it, and the inspector shows Format Axis.
On screen: Click the value axis.
Set the maximum to three thousand, and the major unit to five hundred. Leave a box empty for automatic. Every change is one undo step.
On screen: Format Axis: Maximum 3000, Major 500.
Import charts from Excel
Charts made in Excel come in too. In the Tables and Charts panel, click Import Chart from Excel, and choose the workbook.
On screen: Import Chart from Excel… → Dock Usage.xlsx.
The dialog lists every chart in the workbook, with a preview, its sheet, its type and its series, and says what does not carry over. Tick the line chart and the pie chart, and click Insert.
On screen: Tick the line and pie charts → Insert 2 Charts.
They arrive selected, as whiteboard charts with their titles, colors and axes. Drag them below the first chart. You edit and format them like the one you made.
On screen: Drag the imported charts below the column chart.
Recap
To recap: insert a chart from the Tables and Charts panel, give it data in Chart Data, choose its type in the gallery, set its series in Select Data, format it with Chart Elements and Format Axis, and import charts from Excel.
In the next chapter, you link charts and tables to live spreadsheet cells, connect the board to the model and add clipart.