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. 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.

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.

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.

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.

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.

6. Click on required metric and enter filtering data
You have a lot of control over the filtering of data.

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.

8. Click on Sum of ...

9. Click on total
This is the field within the data table that we wish to sum.

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.

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".

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

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.

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

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.

16. Alternate visualization

17. Alternate visualization

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.

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.

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

21. Select Axes

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

23. Click on Done

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

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

26. Updated data

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

28. Click on Save

29. Click on Not now
Whilst we can add this plot directly to a dashboard, we will cover this in a later tutorial.
