Slide 31
Slide 31 text
#BS1MPUͷఆٛํ๏
w %BUBΛ#BS1MPUͷҾʹ͠ɺ,FZ1BUIͰΛࢦఆՄೳʹͳͬͨ
let dataList = [
(month: "Jan", value: 20),
(month: "Feb", value: 60),
(month: "Mar", value: 45)
]
…
Chart(dataList, id: \.month) {
BarMark(
x: .value("Month", $0.month),
y: .value("Value", $0.value)
)
}
let dataList = [
(month: "Jan", value: 20),
(month: "Feb", value: 60),
(month: "Mar", value: 45)
]
…
Chart {
BarPlot(
dataList,
x: .value("Month", \.month),
y: .value("Value", \.value)
)
}