-
Notifications
You must be signed in to change notification settings - Fork 651
Open
Labels
Description
v2 ticket
Ticket description:
I'm having trouble getting the legend and labels to show in the ChartGrid with a LineChart. I'm passing in the tuple for the data but only the data is displayed
var demoData: [(String, Double)] = [
("M", 8),
("T", 2),
("W", 4),
("T", 6),
("F", 12),
("S", 9),
("S", 2)
]
var body: some View {
ChartGrid {
LineChart()
ChartLabel("")
.labelStyle(.automatic)
}
.data(demoData)
.chartStyle(ChartStyle(backgroundColor: .white,
foregroundColor: ColorGradient(.blue, .purple)))
}
JakobStadlhuber
