The library cannot do this automatically, but there is the following option.
You check if your data contains exactly one point. If yes, then you add a so called LimitLine.
Should someone decide to do something similar with Apple’s Swift Charts, RuleMark() can be used to draw the line and PointMark() for a point like this:
2
Answers
The library cannot do this automatically, but there is the following option.
You check if your data contains exactly one point. If yes, then you add a so called LimitLine.
For example:
For Swift Charts (Xcode 14 Beta)
Should someone decide to do something similar with Apple’s Swift Charts, RuleMark() can be used to draw the line and PointMark() for a point like this:
Example Output: