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

Навчання · Курс 14. Електронні таблиці · Розділ 14.4 з 5

14.4 Графіки та дані моделі 2:47

Побудуйте графік діапазону й відформатуйте його вісь, вставте живу таблицю моделі та читайте значення моделі через SUMIFS і HOLARCH.VALUE.

Показано Holarch 2.35.

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

  • Побудувати графік діапазону й перемістити його поруч із даними
  • Задати межі й ціну поділки осі у «Формат осі»
  • Вставити таблицю моделі з живими даними моделі
  • Підсумувати значення моделі через SUMIFS і прочитати одне значення через HOLARCH.VALUE
  • Побачити, як зміна моделі переходить в аркуш і графік

Побудуйте графік і під’єднайте бюджет маси EO-1: вставте стовпчиковий графік мас підсистем і задайте його вісь значень у «Формат осі», вставте живу таблицю моделі лише для читання з усіма Asset, їхніми номерами й масою, замініть введені оцінки на SUMIFS по таблиці, прочитайте розподіл маси з моделі через HOLARCH.VALUE, а потім змініть масу в моделі й побачте, як бюджет оновлюється.

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

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

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

Практика

Виконайте це самі в Holarch на CubeSat EO-1.

  1. Відкрийте початковий файл розділу або свою книгу з розділу 14.3.
  2. Виділіть B2:C8, відкрийте Графік і оберіть Стовпчиковий. Перетягніть графік праворуч від бюджету.
  3. Клацніть графік правою кнопкою, оберіть Формат вертикальної осі, задайте максимум 5 і основну ціну поділки 1.
  4. Додайте аркуш з назвою Model. У A1 натисніть Таблиця моделі, оберіть клас Asset, позначте Номер і Mass, назвіть таблицю Parts і натисніть Вставити.
  5. На Бюджет введіть =SUMIFS(Parts[Mass],Parts[Number],A3&"*") у C3 і заповніть донизу до C8. На Assumptions введіть =HOLARCH.VALUE("Spacecraft Mass","Threshold Value","kg") у B1.
  6. У Базі даних змініть масу Payload Camera з 2.4 на 2.9 kg і поверніться до електронної таблиці.

Завдання виконано, коли маси надходять з моделі, розподіл показує 12 з моделі, а підсумки, запас і графік оновлюються після зміни Payload Camera.

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

  1. Чи може електронна таблиця змінювати модель?
  2. Що відповідає A3&"*" у критеріях SUMIFS?
  3. Де задати максимум і основну ціну поділки осі графіка?
Показати відповіді
  1. Чи може електронна таблиця змінювати модель?

    Ні. Таблиці моделі та функції HOLARCH читають модель; електронна таблиця ніколи в неї не записує.

  2. Що відповідає A3&"*" у критеріях SUMIFS?

    Кожен номер частини, що починається з номера підсистеми, як-от 1.1.1 і 1.1.2 для 1.1.

  3. Де задати максимум і основну ціну поділки осі графіка?

    У «Формат осі», що відкривається з контекстного меню графіка; порожнє поле залишає значення автоматичним.

Докладніше

Стенограма

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

Introduction

Chapter four: charts and model data. A chart shows the budget at a glance. And a spreadsheet can read the model, so the budget stays current without retyping.

In this chapter you chart the budget, then feed it from the model.

Charts

Select the subsystems and their masses, B2 to C8. Open Chart, and choose Column.

On screen: Name Box B2:C8 → Chart ▾ → Column.

The chart floats over the sheet. Drag it to the right of the budget, so the totals stay in view.

On screen: Drag the chart right of column E.

The chart follows its cells. Right-click it for its menu, and choose Format Vertical Axis.

On screen: Right-click the chart → Format Vertical Axis….

Format Axis sets the bounds and units. Set the maximum to five and the major unit to one. Leave a box empty to keep it automatic. Close the panel.

On screen: Maximum 5, Major 1 → close.

Model data

The masses so far are typed estimates. The model holds the current mass of every component, so read them from there. Add a sheet, and name it Model.

On screen: + → Model.

Select A1, and click Model Table. Choose the class Asset, tick Number and Mass, name the table Parts, and click Insert.

On screen: A1 → Model Table… → Class Asset; Number, Mass; name Parts → Insert.

The table lists every asset with its number and mass, live and read-only. A spreadsheet reads the model, and never writes to it.

On screen: The Parts table.

Back in the budget, replace the estimate in C3. The SUMIFS function adds the masses of the parts whose number starts with the subsystem's number.

On screen: Budget → C3: =SUMIFS(Parts[Mass],Parts[Number],A3&"*") ↵.

Fill it down to C8. Every subsystem now adds up its components from the model.

On screen: Name Box C3:C8 → Fill ▾ → Fill Down.

HOLARCH.VALUE reads one value of one item, in the unit you ask for. On the Assumptions sheet, the allocation becomes the threshold of the spacecraft mass measure in the model.

On screen: Assumptions → B1: =HOLARCH.VALUE("Spacecraft Mass","Threshold Value","kg") ↵.

The sheet follows the model

Now change the model. In the Database, open the payload camera's mass, and change it from two point four to two point nine kilograms.

On screen: Database → Payload Camera → Mass 2.4 → 2.9.

Back in the spreadsheet, with its editor tab. The payload camera's mass, the totals, the margin and the chart have all followed, with no edit to the sheet.

On screen: Editor tab → Budget: 2.90 kg, totals, margin, chart.

Recap

To recap: chart a range and format its axis, insert a Model Table for live model data, sum it with SUMIFS, and read single values with HOLARCH.VALUE.

In the last chapter, you import an Excel workbook and get AI help with formulas.