2

I am Working Core plot BarChart Apply the Bars Colors with RGB Does not Work..!

It is Working Only Major Colors like Red,Green,Blue,White,Purple..!

I am Try to apply Orange not applying.any one help me...!

[CPTColor colorWithComponentRed:255 green:163 blue:0 alpha:1]

It's Orange RGB Color Value.But, apply only Yellow Color....!

1 Answer 1

15

Components are floats from 0 - 1, do this:

[CPTColor colorWithComponentRed:255.0f/255.0f green:163.0f/255.0f blue:0.0f/255.0f alpha:1.0f]
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.