Tableau1 - bar chart and histogram

One, the bar chart

1. First, click Microsoft Excel to connect to our file
insert image description here
2. It is required to draw a bar graph of the number of hotels in different regions.
Put regions into columns, hotel data into rows, click transpose, and sort to form the ordered graph below

insert image description here
3. It is required to draw a bar chart of the average price of hotels in each region.
Put the region in the column and the price in the row. Tableau calculates the total by default, so you need to right-click in the price field -- "Measurement --" Average, and Put the price under the label to
get the following figure

4. It is required to draw a bar chart of the number of hotel data in different regions and distinguish it according to the price.
On the basis of 2, drag the price level to the color label to form the following graph

Second, the histogram

Note: Using Tableau to create a histogram requires the creation of data buckets for the fields, and the fields are required to be continuous
1. It is required to create a hotel rating histogram.
First, create a data bucket for the rating field.
Right-click——>Create——>Data Bucket
Generally, the size of the data bucket will be recommended according to your data. The recommended one in the picture is 0.3, and I choose the
data bucket of 0.6 The size can be understood as the width of the abscissa of the histogram

insert image description here

get the following graph
insert image description here

Guess you like

Origin blog.csdn.net/m0_68795816/article/details/127099173