Make just 1 grid line dashed


Is it possible to make just 1 grid line on an axis dashed? We can do all of them with ‘dashedMajorGridLines’ but I’d like to make 1 specific grid line dashed.



This isn’t something we directly support, however I’ll note down your interest and we may add it to our charts roadmap in the future.

For now, you could create an annotation and then add a dashed line to this as a subview (using drawRect:) or using a CAShapeLayer and adding it as a sublayer (

Kind regards,