10. Charts and Graphs
- Anthony George
- Zoe Baldwin
Charts and Graphs
PhixFlow has the ability to present data in charts and graphs. In this chapter we will add an additional tile to house our charts, then add a pie chart to show a breakdown of industries and a bar chart to show customers onboarded over time. To find out more about this topic see Creating Dashboards and Reports.
Add a Tile for the New Content
- From the palette, drag the tile Collapsible (Horizontal) onto the screen.
- Name,
Charts
.
- Name,
- Use the Layers to move the tile to be the first tile in Tile Container.
- This tile is a special expanding tile, to get it to expand so we can place content inside it we must first lock the screen and click the chevron as illustrated here:
- 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 the tile 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 Selector.
- 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
andIndustry
into the View Attribute area. Close Available Attributes.- Count is a special attribute that produces an aggregate of all the other attribute combinations. See Generating Counts and Other Statistics.
- We need to tell PhixFlow how to use these attributes.
- Double-click Count.
- In Role, select Data Point.
- Save your changes.
- Double-click Industry.
- In Role, select Horizontal Axis Attribute.
- Double-click Count.
- Save all of your changes.
- The pie chart is complete. The screen must be locked to see the pie chart.
To learn more about Pie Charts see Creating a Pie Chart.
Check Point
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 with a chart, which in turn applies these colours where it finds the specific values from the colour map. This is useful if you want your chart to use specific colours such as corporate logo colours.
- 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
- Finance
- Name,
- Save all your changes. Note that these values are case sensitive.
- Open the View Configuration for the Industries pie chart.
- In the Chart Layout Section, from the Colour Map drop down, select
Industry
- In the Chart Layout Section, from the Colour Map drop down, select
- Save all changes and lock your screen.
- The new colours will now appear on your chart.
To learn more about colour maps and how to apply them, see Colour Map.
Adding a Bar Chart
- From the toolbar click Table.
- Drag Companies onto the Charts tile.
- Select Bar Chart (vertical).
- Close the Attributes selector.
- Right-click the chart and select Show the View Configuration.
- Set the Name to be
Status
. - In the View Attributes section, click Attributes.
- Drag the
Count
andStatus
into the View Attribute area. Close Available Attributes. - We need to tell PhixFlow how to use these attributes:
- Double-click Count.
- In Role, select Data Point.
- Save your changes.
- Double-click Status.
- In Role, select Horizontal Axis Attribute.
- Save all of your changes.
- Double-click Count.
- Save all changes.
To learn more about setting up and configuring bar charts see Creating a Bar Chart.
Check Point
When your screen is locked or you are in Application Mode, the screen will now look similar to the following:
Additional Charts and Graphs
We have set up two common types in our example, however, PhixFlow supports a number of other types of data presentations. For more information see Creating Dashboards and Reports.