Michael Young
Michael Young

Reputation: 414

Core-Plot: Removing line that connects points in Scatterplot?

I would like to simply show scatterplot points. Actually, two sets of scatterplot points with different colors.

However, it seems that the default condition of a scatterplot is to connect the dots. I've tried to set the CPTMutableLineStyle properties to nil, but the line still shows.

Upvotes: 2

Views: 1200

Answers (1)

Eric Skroch
Eric Skroch

Reputation: 27381

You can hide lines in Core Plot by setting the corresponding line style to nil.

scatterPlot.dataLineStyle = nil;

Upvotes: 4

Related Questions