↓ Skip to main content
A low-poly picture of a phone standing upright. Its screen shows a bar chart with four bars: three are teal, and the tallest one is orange.

Charts Work in Maximo Mobile. Nobody Ships One.

Open any app of Maximo Mobile that IBM ships, and you find lists, cards, forms and a few tiles with a number. You do not find a chart. A developer who looks at the apps concludes that charts are a matter for the desktop. The framework says otherwise.

MAS 9.2 series charts

We counted the apps that IBM ships with the MAS 9.2 series, and we built the charts into our own Components Explorer on a test system of that series. The pictures of the phone are from the browser preview at the width of a phone. The pictures of the tablet are captures from an Android emulator that we made with an earlier release of the same series.

What IBM ships
#

Number
Apps in the shipped set56
Apps with a chart10
Charts in these ten apps68
Mobile apps among the ten0

The apps that IBM ships with the MAS 9.2 series. Charts are counted in the source of each app, as pages and as dashboard tiles.

All ten apps with a chart are web apps of Manage. The mobile app that comes closest is the Dashboard app of Maximo Mobile. It has one dashboard with ten tiles, and each tile shows a number.

So there is no example to copy from. That is all the absence means.

What it takes
#

This bar chart is one element with two axes. It stands in a page like a label or a list, and it needs no dashboard around it:

<chart id="fs_d_charts_bar" type="bar" datasource="fs_d_charts_ds_status" height="240px">
  <chart-axis id="fs_d_charts_bar_abottom" position="bottom" data-field="wostatus" title="Status"/>
  <chart-axis id="fs_d_charts_bar_astart" position="start" data-field="wocount" title="Work orders" scale-type="linear"/>
  <chart-legend id="fs_d_charts_bar_l" position="bottom" enabled="false"/>
</chart>

Our page has two more attributes on the element, for a click, and we leave them out here. The datasource is a list of four rows inside the app. In the preview, no request goes to Maximo for these charts.

Three proofs
#

The mobile build accepts it. A mobile app has a strict build that refuses every element the mobile platform does not support. Our page has eleven charts of nine types, in a page, in a dialog and in a sliding drawer. The strict build passed.

The preview draws it at the width of a phone.

Three screens of our lab page at the width of a phone. First, a bar chart with four bars and below it a line chart with six points. Second, a donut chart with the number 27 in its middle and below it a pie chart with three slices. Third, a scatter chart with six points and below it a circle pack chart with three large circles that hold smaller ones.
Six of the nine types in the preview, at 390 points of width

An Android emulator draws it too. The preview is a browser, and a browser is no device. We ran a copy of the Technician app with the same charts on an Android tablet emulator, on an earlier release of the series. These are captures of that run:

An Android tablet with the Technician app. Above the work list stands a bar chart, “Work orders by status (sample)”, with four bars for WAPPR, APPR, INPRG and COMP. Two links below it read “Chart type gallery” and “Pie in a drawer”, and the list under them is empty. The bar of Android with its app icons is at the bottom.
A bar chart above the work list of a copy of the Technician app, on an Android tablet emulator
The same tablet with a page “Chart type gallery (sample)”: the lower edge of an area chart, a donut chart with the number 27 in the middle and four coloured segments, and below it the upper part of a stacked bar chart.
A donut and a stacked bar on a page of their own, on the emulator
The same tablet with a drawer open at the left, “Work orders by craft”: a pie chart with three slices and a legend. The page behind it is dimmed.
A pie in a sliding drawer, on the emulator

The captures show a bar chart, a donut, a stacked bar and a pie, with the sample numbers that our lab page uses too. We have not repeated the emulator run on the current release, so the device pictures stand for the earlier one.

What the preview cannot tell you
#

The preview shows that a chart draws and how it looks at a width. Two questions stay open until a device answers them: how a chart feels under a finger, and how long it takes on the hardware of your users. Plan one run on a device before a chart goes to the field.

Where a chart helps on a phone
#

A technician does not read reports on a phone. A chart earns its place there when it shows the shape of the day at one glance: how many work orders in which status, how the week is split by priority.

The data for such a chart is small. Four rows for four status values are enough, and the app can count them from records it already has. For such a chart, the download is no obstacle.

What to read next#


IBM documents the chart elements in the product itself, in the Application Configuration application under Component Documentation.