section |
# Dataset & Chart
A set of edible mushrooms sampled from the UC Irvine Mushroom dataset.
In this tutorial, we create a chart displaying 200 mushrooms, grouped by their odor and cap surface characteristics.
|
|
section |
# Create the Glyph and Add the Legend
Create the glyph with a circle mark and add a legend.
|
|
timeBegin |
timeEnd |
text |
0.00 |
4.00 |
Add a circle mark to the glyph
|
|
timeBegin |
timeEnd |
text |
4.00 |
7.91 |
Map `IsEdible` to `Fill`
|
|
timeBegin |
timeEnd |
text |
7.91 |
14.69 |
Add a legend to the chart canvas after setting the color for edible mushrooms to Blue and setting the color for poisonous mushrooms to Red
|
|
timeBegin |
timeEnd |
text |
14.69 |
18.29 |
Set the stroke color of the circle mark to White
|
|
section |
# Group the Glyphs
|
|
timeBegin |
timeEnd |
text |
18.29 |
26.89 |
Assign `Odor` to the X axis and `Surface` to the Y axis
|
|
timeBegin |
timeEnd |
text |
26.89 |
30.90 |
Change the sub-layout to the (circle) packing
|
|
timeBegin |
timeEnd |
text |
30.90 |
33.83 |
Adjust the left margin of the chart to accommodate the Y axis tick labels
|
|
section |
# Finalize the Chart
|
|
timeBegin |
timeEnd |
text |
33.83 |
44.07 |
Change the title to '200 Samples of Mushrooms'
|
|
timeBegin |
timeEnd |
text |
44.07 |
50.70 |
Adjust the chart height
|
|