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
 Second label on bar/column 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

dominik.mierzwa

Poland
124 Posts

Posted - 06/16/2021 :  09:20:38 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hi,

Is there a possibility to add second label to the bar/column chart? I have 2 columns with labels and I would like to present them both. I have tried with the "Custom" label format but no effect. Maybe, I should add a second layer and place the labels on it?



Kind regards,
Dominik

YimingChen

1685 Posts

Posted - 06/16/2021 :  09:47:09 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Try Custom Label with format string: $(wcol(n+2)[i]) %(wcol(n+3)[i]$).

Origin treats numeric and text differently in LabTalk substitution notation.

James
Go to Top of Page

dominik.mierzwa

Poland
124 Posts

Posted - 06/17/2021 :  03:37:52 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by YimingChen
Origin treats numeric and text differently in LabTalk substitution notation.
James



That was the point! I was trying the substitution $() instead of %() for the second label. Your code works perfectly!

But I have two other problems:
1. How to arrange the labels in separate lines?
2. How to hide empty labels 1 and show labels 2?



Kind regards,
Dominik

Edited by - dominik.mierzwa on 06/17/2021 03:40:26 AM
Go to Top of Page

YimingChen

1685 Posts

Posted - 06/17/2021 :  09:57:05 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Maybe you can create a new label column, see below:


James
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