Docs menu

Model-driven apps

Add Ninth Forge Chart as the component of a view, or of a subgrid on a form, and it draws a chart from that view’s rows. The view’s filter decides which rows the chart adds up, so make one view per chart.

What your view needs

The control can only read columns that are in the view. Add every column you’ll map.

Column Types Example
Category Choice, lookup, text, date, yes/no or whole number. Required. Order date or Region
Value Whole number, decimal, float or currency Amount. Leave it unmapped to count rows.
Split by (series) Same types as Category Channel, for one colour per channel

Use the “Date only” behaviour for date columns. A “User local” date column can show a day early for users west of whoever saved the date. That’s how Dataverse stores those columns, not the chart.

The chart adds up every row the view returns, up to 50,000. Above that, a note under the chart says it’s showing the first 50,000 rows.

Add it to a view

  1. In Power Apps, open your solution, then your table, then Views. Create a view, for example “Revenue by month”, or open one.

  2. Add the columns you’ll map, and set the view’s filter.

  3. Select Components, then + Add a component, then Ninth Forge Chart. (In the classic view editor it’s Custom Controls, then Add Control.)

  4. Map Category and Value. To get one colour per value of a column, map Split by (series) too.

  5. Set Chart type and the other options (see the table below). Under Show component on, tick Web, and Mobile and Tablet if you like. Select Done, then Save.

    The Edit Ninth Forge Chart panel in the view designer: under Data, Category is mapped to Sale Date (Date Only) and Value to Amount (Currency), with Split by, Second value and the drill levels left empty.

  6. Select Save and publish.

Open the app, go to the table and pick the view from the view selector. The rows show as a chart.

The Charts: Sales by month view in a model-driven app as a column chart of sales in Australian dollars for each month from July 2023 to June 2026.

If the app still opens another view, see Troubleshooting.

Add it to a form subgrid

Use this to chart the related rows of the record on screen, for example a range’s sales by month.

  1. Open the form in the form designer. To add a subgrid, go to Component, then select Read Only Grid. Tick Show related records, pick the related table and its view, then select Done. To use a subgrid that’s already there, select it.
  2. In the subgrid’s properties, open Components and select + Component.
  3. The first time, Ninth Forge Chart isn’t in the list yet: select Get more components, tick Ninth Forge Chart, then Add. Then pick Ninth Forge Chart from the list.
  4. Map Category and Value and set the options as for a view, then select Done.
  5. Select Save and publish.

The subgrid’s view decides the columns and rows, as above.

Map columns and settings

The Properties page has every setting.

Setting What it does Example
Chart type Column, Bar, Line, Area and Donut are Lite (free). The rest are marked (Pro), from Stacked column (Pro) to Treemap (Pro). Column
Title, Subtitle Shown above the chart, and read first by screen readers. “Revenue by month”
Aggregate Sum, Average, Count, Minimum or Maximum, per category. Sum
Date grouping When Category is a date: Day, Week, Month, Quarter (calendar), Fiscal quarter, Year or Fiscal year. Month
Fiscal year starts (month 1-12) The first month of your fiscal year. 7 for July
Number format Auto, Number, Currency, Percent (0.25 = 25%) or Compact (K, M, B). Currency
Currency code For the currency format. AUD
Theme, Accent colour (hex) Light or Dark, and a hex colour. Empty uses Ninth Forge cobalt. #2E54FF
Licence key For Pro types and features. Leave it empty to use the keys in the Ninth Forge licence keys environment variable.

Other Charts controls

Add the other controls the same way, from Components:

  • Ninth Forge KPI: map Value (leave it empty to count rows) and Date. Set Period (Month, Quarter (calendar), Fiscal quarter, Year, Fiscal year or All time) and Compare with (Previous period, Target, Plan (Plan column), Same period last year, Plan and last year or Nothing). The single tile is free. The card grid and gauges are Pro.
  • Ninth Forge Variance: map Category (accounts, cost centres or months) and Actual (AC), plus Plan (PL) or Prior year (PY), or both. Forecast (FC) is optional: each row without an actual uses its forecast instead, drawn hatched, so a year reads as actuals so far plus forecast for the rest. Keep each period’s actual and forecast on the same row. Fill in Measure (message title), Period (message title) and Unit (message title) for a title such as “Revenue · AC vs PL · FY26, AUD”. For costs, turn on Up is bad (costs).
  • Ninth Forge KPI Shapes, Ninth Forge Sankey, Ninth Forge Variance Table and Ninth Forge Consulting: their columns and settings are on the Properties page.

Custom pages

Custom pages are canvas pages inside a model-driven app, so follow the canvas steps. Charts haven’t been tested on a custom page yet.

If something’s wrong

See Troubleshooting.

Last updated