The list in Settings
Every graph is listed in Tools › Settings, under Graph Settings. This is where a graph is started, and where graphs are put in order, copied and deleted.
| Graph Name | The name in the Graph tab's list. |
| Graph Title, X Axis, Y Axis | Each button opens the same settings as a double-click on that part of the graph: see Part 1. |
| Data Type | What a column or point is: see below. |
| Legend | None, or its place. |
| Sort Item, Filter, Display Criteria | Which columns or points are drawn, and in what order: see below. |
| Custom | The buttons along the bottom of the Graph tab: see below. |
| Items | How many items the graph has. The button beside the number opens the list of them. |
| The arrows | Move a graph up or down. The Graph tab lists graphs in this order, and opens on the first. |
| The red bin and the green plus | The bin deletes the graph. The plus adds a new graph below the row; the plus at the top of the list adds one at the end. |
| Copy and paste | Copy takes a graph's whole definition as a line of text. Paste makes a graph from it, at the end of the list, with the same name: give it a name of its own straight away. |
The quickest way to a new graph is to copy the nearest one you have, paste it, rename it, and change its items.
What a column or point is
The Data Type decides it.
| Data Type | A column or point is | It draws |
|---|---|---|
| Product | A product. | A series for each item that is drawn. |
| Classification | A value of the classification chosen on the Graph tab: a brand, a category. | A series for each item that is drawn. |
| Planogram | A planogram. | A series for each item that is drawn. |
| Classification x Planogram | A classification value. | One item, as a series for each planogram. |
| Planogram x Classification | A planogram. | One item, as a series for each classification value. |
- A classification column stands for several products. Each item's Aggregation says how their figures are combined.
- Planogram x Classification draws a series for every value. With more than 20, Spanner asks before it draws, as the graph takes time and is hard to read. Choose a classification with fewer values.
Items
Click the button beside a graph's Items count. Each row of the list is one item. The green plus at the top adds an item; the arrows, the bin and the plus on a row move it, delete it, and add one below it.
| Header | The series' name in the legend and the tooltip: see Headers and titles. |
| Code | What the item plots: see Item codes. |
| Aggregation | For a column that stands for several products: Sum, Average, Count, First or Last. |
| Type | Column, Row, Line, Scatter, Bubble, Stacked Column or Stacked Row. |
| Axis | X, Y, Y2 (a second scale, on the right), Z (the size of a bubble) or None (an item that only colours points). |
| Group | A number. Items with the same number are drawn together: see What is drawn. |
| Number Format | How the figures are written. N0 is a whole number, N1 has one decimal, P1 is a percentage. A sales measure's code writes them as that measure is written elsewhere. Linear and Area write a length and an area in your units. |
| Colour | The colour of the column, row, point or line. |
| Colour Override | Rules that colour points by a figure: see Colouring points. |
| Point Size | The size of a scatter's points and a line's markers, and of the largest bubble. |
| Lines Colour, Lines Thickness | The outline of a column, row or point; 0 for none. For a Line, the thickness of the line itself: a new item starts at 0.5, which is very thin, so give a line 2 or 3. |
| Value Display | Value, or Share for each figure as a share of the series' total. Give a share the Number Format P1. |
What is drawn
This is the part to understand before building a graph. Items are drawn by group, and in a Product, Classification or Planogram graph each group draws one thing. Spanner takes the first of these that fits the group:
| A group with | Draws |
|---|---|
| A Stacked Column or Stacked Row item | All its Stacked Column items on Y, one on top of the other, or all its Stacked Row items on X. |
| An item on X and an item on Y | Points. The first Y item must be a Scatter, or a Bubble with an item on Z for the size. |
| An item on Y, and none on X | The first Y item, as a Column or a Line. |
| An item on Y2, and none on X or Y | The first Y2 item, as a Column or a Line against the right-hand scale. |
| An item on X only | The first X item, as a Row. |
Four things follow.
- One series for each group. For two columns side by side, give the two items different group numbers. An item on Y2 needs a group to itself.
- A second item on the same axis in a group is a spare. It is not drawn, but the user can swap to it, from the Change Items button or the series' right-click menu. This is how the distribution graphs offer six rates of sale.
- An item on X changes the whole graph. With no item on X, the X axis lists the names of the products, classification values or planograms. An item on X turns it into a scale of numbers, for every group. So keep points in one graph and columns in another. Rows are the same, the other way round.
- The two "x" data types draw one item. It is the first that is a Column on Y or a Row on X; Planogram x Classification also takes a Stacked Column or Stacked Row. Leave its Header empty, as each series is named after its planogram or classification value.
Item codes
An item's Code names a figure. It is one of five kinds.
| Kind | Example | Notes |
|---|---|---|
| A figure for the selected planogram | Planogram_SelectedLinearSpace | A product's space on the selected planogram. For Product and Classification graphs. |
| A figure for the comparison planogram, or the change | Planogram_ComparisonLinearSpacePlanogram_ComparisonToSelectedLinearSpaceChange | For Product and Classification graphs. |
| A figure for each planogram | Planogram_LinearSpace | For the two "x" data types only. Elsewhere it draws nothing. |
| A sales figure | VALUE_OU_2_TY | For every data type but Planogram. |
| A property of the product or planogram | PositionsCountBaysCount | Any of its properties that is a number. |
Planogram figures
The names are built from three parts: Planogram_, then Selected, Comparison or nothing, then what is measured.
- What is measured:
LinearSpace,AreaSpace,CubicSpace,Facings,Positions,Listings,UnitsStockorMovement. - A change is
Planogram_ComparisonToSelected, what is measured, thenChange. There is none for Movement. - On a Planogram graph the planogram's own properties are used:
LinearSpace,AvailableSpace,BaysCount,FittingsCount,PositionsCount.
Sales figures
A sales code has four parts, joined by underscores.
| Measure | The code of one of the document's measures. To find a code, look at an item or a report column that already shows the measure, or ask Spanner AI for the list. |
| Outlet | OU for the selected planogram's outlet and CH for its channel; COU and CCH for the comparison planogram's; or an outlet's name. |
| Period | 1 or 2, the document's two periods. |
| Year | TY for the latest year, YA for the year before. |
Calculations
A code with spaces in it is a calculation: figures with a command between each, worked from left to right.
- The commands are
+,-,*and/, or the wordsAdd,Minus,MultiplyandDivide.Getmay start it. - Space for each product:
Get Planogram_SelectedLinearSpace / ProductCount - Change of space:
Get Planogram_SelectedLinearSpace - Planogram_ComparisonLinearSpace - On a classification column each figure is totalled over the column's products first, and the totals are then combined. A division is therefore the ratio of the totals, which is what you want.
- There are no brackets. A calculation takes the figures for the selected and comparison planograms, sales figures and properties. It is not worked out in Planogram or Planogram x Classification graphs.
Headers and titles
An item's Header, and the graph's three titles, can hold words that Spanner fills in from the document. Use them, so that a graph reads correctly in every document.
<SELECTEDPLANOGRAM>, <COMPARISONPLAN> | The names of the two planograms. |
<OUTLET> | The selected planogram's outlet. |
<TIME1>, <TIME2> | The document's two periods. |
<ROWVIEW> | The classification chosen on the Graph tab. |
A measure's code, as <VALUE> | That measure's short description. |
A word in square brackets, as [Linear] [Space] | The word in the user's language, where Spanner has it. |
A typical header is <SELECTEDPLANOGRAM> [Linear] [Space], and for sales <OUTLET> <VALUE> <TIME2>.
Colouring points
A scatter's or a bubble's points can be coloured by a figure, with a legend entry for each colour.
- Add an item to the points' group with Axis set to None.
- Give it the Code of the figure to colour by.
- In Colour Override, type a rule for each colour: a value, a colour and the legend's text, with a space between each.
| Code | Colour Override |
|---|---|
OnSelectedPlanogram0 or 1 | 0 Red Not<sp>ranged 1 Green Ranged |
OnSelectedAndComparisonIndex0 on neither planogram, 1 removed, 2 added, 3 kept | 0 Gainsboro None 1 Red Removed 2 Green Added 3 Blue Kept |
GraphRowViewIndex, with Aggregation First | RowView: a colour of its own for each classification value. |
- A space inside the legend's text is written
<sp>, as a plain space ends the text. - A value can be a test:
<5,<=5,>5or>=5. The first rule that fits is used, so put them in order. - A colour is a name, such as
SteelBlue, or a code such as#FF00E000. - Bubbles that share a colour share a size. Colour bubbles by
RowView, where each has its own colour, and sizes are true.
Sort, Filter and Display Criteria
Sort Item
| Empty | By name, A to Z. |
Descending | By name, Z to A. |
None | The document's own order. |
A code: Planogram_SelectedLinearSpace | By that figure, largest first. |
A code, then Ascending | By that figure, smallest first. |
The code may be a calculation. The two "x" data types sort their columns and their series separately, as Classification=Planogram_LinearSpace Planogram=None: copy the Sort Item of a standard graph of the same type.
Filter
Any of these words, with a space between them:
Product Filter | The graph follows the Product filter. |
Planogram Filter | The graph follows the Planogram filter. |
Selected Planogram | Only the products on the selected planogram; in a Planogram graph, only that planogram. |
NonZero | A column or point whose figures are all zero is left out. |
Most graphs want Product Filter NonZero.
Display Criteria
- To keep the first or last few, after sorting:
Top 20orBottom 20. - To keep those that pass a test: a code, one of
=><>=<=<>, and a number, with a space between each:PositionsCount > 0. - Both together:
Top 100 PositionsCount > 0. - A sum in a test is written without spaces:
WTD_OU_2_TY+Planogram_SelectedPositions > 0.
The buttons
The Custom box lists the buttons a graph has along the bottom of the Graph tab. Type any of these, with a space between them.
| Custom | Button | Give it to |
|---|---|---|
Linear-Area | Swap Linear & Area | A graph of linear space. |
Row-Column | Swap Row & Column | A graph of columns or stacked columns. |
Value-% | Swap Values & Percentage | A graph of columns. |
Time1-Time2 | Swap the two periods | A graph of sales figures. |
ChangeItems | Change Items | A graph with spare items: see What is drawn. |
The standard column graphs have Linear-Area Row-Column Value-%, and the distribution graphs Time1-Time2 ChangeItems.
When a graph is empty
| You see | Look at |
|---|---|
| Nothing at all | The filters, and whether a planogram is selected. Then the items: does a group have an item that can be drawn, by the table in What is drawn? |
| One series is missing | Its Group. It shares one with an item that is drawn in its place. |
| Columns of no height, or points in a line along an axis | The Code. It is misspelt, or the document has no such measure, or it is a figure for each planogram in a graph that is not one of the "x" types. |
| Columns with numbers along the bottom in place of names | An item on X. It has turned the X axis into a scale. |
| A graph that works in one document and not another | The sales measures. A graph can only plot the measures a document has. |