Holarch
Розділи курсів

Навчання · Курс 13. Дошки · Розділ 13.3 з 4

13.3 Графіки 3:32

Вставляйте графіки, задавайте їм дані, змінюйте їхній тип, вибирайте дані, форматуйте осі й імпортуйте графіки з Excel.

Показано Holarch 2.35.

Що ви дізнаєтеся

  • Вставити графік і задати йому дані в «Дані графіка» — введені, вставлені чи імпортовані з файлу
  • Змінити тип графіка, зокрема на з накопиченням і нормований з накопиченням
  • Поміняти рядки й стовпці та впорядкувати ряди у «Вибрати дані»
  • Увімкнути елементи графіка й задати межі та ціну поділки осі у «Формат осі»
  • Імпортувати графіки з книги Excel

Додайте аркуш із графіками використання до дошки концепції Bike-Share Dock: вставте стовпчастий графік, відредагуйте його дані й імпортуйте показники прокату з аркуша Excel, перемкніть його на стовпчастий з накопиченням у галереї «Змінити тип графіка» (з попереднім переглядом нормованого з накопиченням, лінійчатого, лінійного, кругового, кільцевого й точкового), змініть порядок рядів і поміняйте їх у «Вибрати дані», увімкніть підписи даних і перемістіть легенду в «Елементи графіка», задайте межі й ціну поділки осі значень у «Формат осі» та імпортуйте лінійний і круговий графіки з книги Excel через «Імпортувати графік з Excel».

Файли проєкту

  • Початковий проєкт (.holarch.json; Керування проєктами → Файли проєкту ▾ → Імпортувати проєкт (.json)…)
  • Готовий проєкт (.holarch.json; Керування проєктами → Файли проєкту ▾ → Імпортувати проєкт (.json)…)

Відео відтворюється з holarch.app; див. Політику конфіденційності.

Практика

Виконайте це самі в Holarch на Bike-Share Dock.

  1. Відкрийте початковий файл розділу й дошку Dock Concept. Натисніть + на смузі аркушів.
  2. Відкрийте Таблиці та графіки і натисніть Стовпчаста. Двічі клацніть графік, натисніть Імпортувати з файлу… і виберіть власну книгу зі стовпцем підписів і двома числовими стовпцями.
  3. Клацніть графік правою кнопкою → Змінити тип графіка… → Стовпчаста з накопиченням → OK.
  4. У розділі Графік натисніть Вибрати дані…, двічі спробуйте Поміняти рядки й стовпці, перемістіть ряд вище й натисніть OK.
  5. Позначте Підписи даних, встановіть легенду Угорі, натисніть вісь значень і задайте Максимум і Основна.
  6. Натисніть Імпортувати графік з Excel… і вставте графік із книги, яка містить графіки.

Завдання виконано, коли аркуш має стовпчастий графік із накопиченням із підписами даних, легендою вгорі й фіксованими межами осі, а також один графік, імпортований з Excel.

Перевірте себе

  1. Коли нормований графік із накопиченням кращий за звичайний із накопиченням?
  2. Що робить «Поміняти рядки й стовпці»?
  3. Як повернутися до автоматичної межі осі після того, як ви її задали?
Показати відповіді
  1. Коли нормований графік із накопиченням кращий за звичайний із накопиченням?

    Коли частки важливіші за підсумки: кожен стовпчик заповнює всю висоту, а сегменти показують частку кожного ряду.

  2. Що робить «Поміняти рядки й стовпці»?

    Вона міняє місцями ряди й категорії: рядки стають рядами, а стовпці — категоріями, або навпаки.

  3. Як повернутися до автоматичної межі осі після того, як ви її задали?

    Очистьте поле у «Формат осі».

Докладніше

Стенограма

Показати стенограму (озвучення і те, що на екрані)

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.