Post not yet marked as solved
Click to stop watching this thread.
You have stopped watching this post. Click to start watching again.
Post marked as unsolved with 1 replies, 0 views
Replied In
How do you manually set a range on a chart
I found a workaround by adding a hidden vertical RuleMark for the beginning and end of the day. Not sure if this is a good idea but it does seem to work well.
RuleMark(x: .value("Start of day", period.start))
.foregroundStyle(Color.clear)
RuleMark(x: .value("End of day", period.end))
.foregroundStyle(Color.clear)