Is there a way to add an average horizontal line (or a whatever single line) to a bar chart graph using core plot framework?
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
One way of doing this is by using CPTScatterPlot:
Add Following lines to your code after you have initialized and added your bar plot(or what ever your actual data plot is) to your graph.
Then add datasource methods, in my case I have set the datasource in above code to self, so I am defining datasource methods in the same file: