If we'd like to add labels to our pie chart

like we did with the pie chart in Jupyter Notebook,

we can take the manufacturer dimension and drag it to the label field in the marks pane.

This gives us a labeled pie chart that

duplicates the one that we created in Jupyter Notebook.

I'm going to rename this worksheet

Pie Chart and then create a new worksheet for a bar chart.

In Jupyter Notebook, our bar chart plotted the amount of

sugar per cereal and this is just as easy to make as the pie chart was in fact easier.

We can take the sugar's measure and drag it to

the columns field and then the cereal dimension and drag it to the rows field.

And this gives us a vertical bar chart of the amount of sugar per cereal.

If we'd like to make this a vertical bar chart like we had with Jupyter Notebook,

all we have to do is switch the position of cereal and sugars

in the columns and rows fields and we have a vertical bar chart.

Notice that Tableau, unlike Jupyter Notebook,

scales the graphs more intelligently and scales it in such a way that the name of

the cereal is readable on the graph unlike

Jupyter Notebook where it was very difficult to read the name

of each of the cereals and we ended up removing that from the visualization.

As before, I will rename

this bar chart and move on to creating a histogram.

If we move over to our charts pane and we hover over histogram,

we can see that a histogram view requires one measure.

When we created a histogram in Jupyter Notebook,

we created a histogram of the amount of sugar in each cereal,

which essentially collapsed the bar chart that we saw in

our previous worksheet to a much more readable histogram.

So, in this case, we take the sugar's measure and drag that to

the column pane and then click on "Histogram" in the charts view.

Here, we can see that a histogram was automatically created.