section |
# Dataset & Chart
The average monthly temperatures of Beijing, Caneberra, and Seattle.
In this tutorial, we create a radial bar chart showing the average temperatures of the three cities.
|
|
section |
# Create a Bar Glyph
The initial rectangle glyph will later become a wedge in the radial chart.
|
|
timeBegin |
timeEnd |
text |
0.00 |
3.10 |
Add a rectangle mark to the glyph
|
|
section |
# Create a Radial Layout
|
|
timeBegin |
timeEnd |
text |
3.10 |
7.03 |
Apply the circular scaffold
|
|
section |
# Map Data to the Mark and Plot Segment
|
|
timeBegin |
timeEnd |
text |
7.03 |
14.95 |
Map `Temperature` to `Height` and `City` to `Fill`
|
|
timeBegin |
timeEnd |
text |
15.23 |
20.47 |
Assign `Month` to the angular axis
|
|
section |
# Perform Final Adjustments
|
|
timeBegin |
timeEnd |
text |
20.47 |
30.21 |
Adjust the gaps
|
|
timeBegin |
timeEnd |
text |
30.21 |
35.23 |
Switch the alignment to `Top`, which aligns the bars to the outer circle
|
|
timeBegin |
timeEnd |
text |
35.23 |
41.23 |
Adjust the inner circle radius
|
|