PhixFlow has the ability to generate charts and graphs to display data. In this chapter we will add an additional tile to display our chart data and then add a pie chart to show industries and a bar chart to show customers onboarded over time.
Add a Tile for the New Content
In the palette.
Drag the Tile, Expanding (Horizontal) onto the screen.
Name it Charts.
Use the layer section to move the tile to be the first tile.
This tile has a special expanding area, to get it to open so we can place content inside it we must first lock the screen and then click the chevron:
Now unlock the screen.
Click on Header 1, and in its properties set Default Value to Companies Dashboard.
Optionally we can move the chevron that opens and closes our area to the right if we prefer.
In the layers drag it below expanding area.
Adding a Pie Chart
From the toolbar click Table.
Drag Companies onto the new Charts tile.
Select Pie Chart
Close the Attributes picker.
Right-click the chart and select Show the View Configuration.
Set the Name to be Industries.
In the View Attributes section, click Attributes.
Drag the Count and Industry into the View Attribute area. Close Available Attributes.
We need to tell PhixFlow how to use these attributes.
Unlocked your screen should look similar to the one below:
Colour Maps
Colour maps are used to map colours to specific values in our data. The colour map is associated to a chart, which in turn applies these colours where it finds the the specific values from the colour map.
Open the repository and expand your application.
In the Colour Maps section click
Name, Industry
Save your changes, this is necessary to add our Colour Map Entries.
Click next to Colour Map Entries.
Name, Manufacturing.
Colour, #04E6cb
This colour will be applied where we see Manufacturing in our data.
Save your change.
Create Colour Map Entries for:
Finance
Name, Finance
Colour, #cccccc
Software
Name, Software Development
Colour, #777777
Telecoms
Name, Telecoms
Colour, #adb1b3
Save all your changes. Note that these value are case sensitive.
Open the View Configuration for the Industries pie chart.
In the Chart Layout Section.
Select Industry from Colour Map drop down.
Save all changes and lock your screen.
The new colours will now appear on your chart.
To learn more about colour maps ad how to apply them, see Colour Map.
Adding a Bar Chart
Finding Layouts and Components
It can be very useful to find a layout, component or container. There are two ways to do this:
Using Layers
TheLayerspane is expandable from the left of the screen canvas. Select an item:
on the canvas to highlight it in the Layers pane
in the Layouts pane to highlight it on the canvas.
If the layer section is not visible click Show/Hide Layer Panel.
Using Find in Repository
Right-click any item on an unlocked screen and select Find inRepositoryAlternatively, to search the repository, expand the Components section and navigate to the component. The position of the components on a screen is reflected in their order and nesting in the repository list.
To check whether a component is shared with multiple applications, open its properties and check the Parent Details section, which names the application or package to which the component belongs. For example a component that is shared between several applications has a package as its parent; see Package.