Insights | Creating a chart or plot |II_002

In the previous tutorial, we learned how to use Infigo data within Metabase to create a "question" and obtain some data in a format we desire.

This tutorial covers a very similar process, however instead of the final data displaying either a table of values or a single value, we will instead see how we can choose between a range of visualisation types.

Infigo Insights level required to undertake: *****

  1. 1. Click on New

    We will begin by creating a new "Question" within Metabase.

    As we have seen previously, this allows is granular control over the displayed data and allows us to define exactly the data we wish to see.

    Click on New
  2. 2. Click on Question

    In this example, we wish to generate a useful chart which shows the order value taken by one particular storefront each day.

    Click on Question
  3. 3. Select the starting data set to use

    As before, we have the choice between the complete platform data set (in my case named "training" after my platform" and previously refined data in the form of already saved questions.

    Here, we will choose the complete data set.

    Select the starting data set to use
  4. 4. Locate the data table containing the required information

    Our required data is to do with placed orders. We have several data sets containing the word "order", however the general order details (such as the pricing we need) is best obtained from the general "order" data table.

    Locate the data table containing the required information
  5. 5. Click on Add filters to narrow your answer

    As in the previous tutorial, we are going to refine the data set to only display data from one storefront on our platform.

    Click on Add filters to narrow your answer
  6. 6. Click on required metric and enter filtering data

    You have a lot of control over the filtering of data.

    Click on required metric and enter filtering data
  7. 7. Click on Pick the metric you want to see

    With the current configuration, the question will potentially return a lot of order data, which is far more than we require.

    Summarize features allow you to simplify provided data and view it in a more user friendly way.

    In our case, we will take the "total" column data from the "order" data table, and ask it to merge the total of any orders that were done on the same day.

    Click on Pick the metric you want to see
  8. 8. Click on Sum of ...

    Click on Sum of ...
  9. 9. Click on total

    This is the field within the data table that we wish to sum.

    Click on total
  10. 10. Click on Pick a column to group by

    We then select how we want to group this information.

    This is an optional step. If not carried out, the data will be displayed simply based on your specification from the previous step (such as showing the order total for ALL orders).

    By selecting additional column to group by, we can ensure that we aren't simply going to end up with one figure, but can obtain a range of data points for later use.

    Click on Pick a column to group by
  11. 11. Select relevant grouping column

    In our example, we are looking to group orders by day on which they were placed. So, we can utilise the "created_date" field.

    The system recognises this as a date field, so we have additional specification capabilities, allowing us to define how to group within this column, such as "by week" or "by day".

    Select relevant grouping column
  12. 12. Click on Visualize

    We can see the result of our current question at any time by clicking Visualize.

    Click on Visualize
  13. 13. Initial visualization

    The Metabase system will display the data in the way it deems most useful. This could be as a table, a graph or other visualisation means.

    Our sample question has resulted in data being displayed as a line chart. It is showing us a "sum of total" for each day, which is very useful given our chosen data set.

    It is possible to change the visualisation being used, with a range of plots available for selection.

    Initial visualization
  14. 14. Click on Visualization

    This will show a panel on the Metabase screen where the visualization type can be selected.

    Click on Visualization
  15. 15. Click on Choose a visualization

    Whilst you can select any type, all invalid chart types (based on your selected data) will be greyed out.

    Click on Choose a visualization
  16. 16. Alternate visualization

    Alternate visualization
  17. 17. Alternate visualization

    Alternate visualization
  18. 18. Visualization display settings

    Each visualization type has different display settings, allowing you to control the appearance of the plot.

    Whilst these are different for each type, they operate in a similar and user-friendly way.

    Altering the display settings will be demonstrate on the bar plot shown.

    Whilst this provides almost the exact format of data we require, we can tidy this plot up.

    Visualization display settings
  19. 19. Choose data being displayed

    In our example, we have a very refined data set. This means we do not have alternate selections for X and Y axis data.

    However if we had chosen a larger data set, we would be able to specify which metric to display on the axes using these options.

    Choose data being displayed
  20. 20. The colour of the data set can also be changed

    The colour of the data set can also be changed
  21. 21. Select Axes

    Select Axes
  22. 22. Modify axis data

    We can format the axes of our plot using the Axes area.

    This allows us to specify information such as what is displayed on the axis labels

    Modify axis data
  23. 23. Click on Done

    Click on Done
  24. 24. Data displayed on charts can be altered in numerous ways, without having to go back to the question specification screen

    Data displayed on charts can be altered in numerous ways, without having to go back to the question specification screen
  25. 25. For larger scale data changes, you may need to hit the run button to refresh the data being displayed

    For larger scale data changes, you may need to hit the run button to refresh the data being displayed
  26. 26. Updated data

    Updated data
  27. 27. Click on Save

    Once you have the correct data in your desired format, save this question for later use.

    Click on Save
  28. 28. Click on Save

    Click on Save
  29. 29. Click on Not now

    Whilst we can add this plot directly to a dashboard, we will cover this in a later tutorial.

    Click on Not now