The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum
 Origin Forum
 Conditional Coloring of Bar Chart
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

jahlmj@apc

USA
6 Posts

Posted - 11/24/2008 :  12:57:37 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Is there a way to format positive and negative values in a bar chart differently? I know I can move the positive and negative data to different columns and color them differently that way and overlay plots, but it would be easiest if one could specify the bar color conditionally.

I have Origin v7.5 r6.

jahlmj@apc

USA
6 Posts

Posted - 11/24/2008 :  1:09:12 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I answered my own question!

Create three y datasets. 1 Column for positive values, 1 column with all 0 values (or midpoint value), and 1 column for the negative values.

Create a floating column chart using the three y columns as you data and whatever x (category) column you might have. You can then color the positive values (Column B) separate from the negative (Column E).
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000