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
 Stacked Column Graph with Grouping based on column
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

AKazak

Russia
1205 Posts

Posted - 12/02/2020 :  07:13:54 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
OriginPro 2021 (64-bit) 9.8.0.200
Windows 7 Pro x64 SP1

Greetings!

Please see the attached project: https://my.originlab.com/ftp/forum_and_kbase/Images/Grouped%20Stacked%20Column.opju

I want to Create a Tick Label Table for X-Axis for the existing graph, with the bottom row containing group numbers (column A) and the top row containing sample IDs (column A), similar to that at https://www.originlab.com/doc/Tutorials/GroupedStackedColumn.

How do I achieve this?

Related matter
I created Data worksheet by calling Create context-menu command in the graph window. However, the sheet doesn't display a yellow column label and header rows (long name, units, F(x), comments, etc.). Why does this happen? How do I get the missing rows back?


Thank you.

---
Andrey

Edited by - AKazak on 12/02/2020 07:15:02 AM

YimingChen

1647 Posts

Posted - 12/02/2020 :  09:11:09 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
1. Double click on the bottom x axis, under Scale tab, change Major Ticks type to By Increment and set Value to 1.
2. Under Tick Labels tab, Display subtab, change Type to Text from dataset. Change Dataset Name to Col(A).
3. Under Table subtab, check Enable box. Set Merge Labels to Between Subgroups/Subsets.
Repeat this for upper x axis, but refer to col(B) instead.

James
Go to Top of Page

AKazak

Russia
1205 Posts

Posted - 12/02/2020 :  10:45:28 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by YimingChen

1. Double click on the bottom x axis, under Scale tab, change Major Ticks type to By Increment and set Value to 1.
2. Under Tick Labels tab, Display subtab, change Type to Text from dataset. Change Dataset Name to Col(A).
3. Under Table subtab, check Enable box. Set Merge Labels to Between Subgroups/Subsets.
Repeat this for upper x axis, but refer to col(B) instead.

James



So far so good.
Thank you.

However I noticed, that if I leave Major Ticks type to By Custom Positions, then a strange offest appears (see below).
Do you have an idea about what could cause the horizontal offset?


By the way, why the doesn't Data worksheet have yellow column label and header rows (long name, units, F(x), comments, etc.)? Is this a special kind of worksheet?

---
Andrey
Go to Top of Page

YimingChen

1647 Posts

Posted - 12/02/2020 :  12:32:27 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

Custom position in table tick label is actually specifying the boundaries of table cells instead of cell centers. e.g. left boundary of first cell is 1.

The column labels rows are just hidden. Double click on the gray area of the worksheet, click Edit Column Label Rows... button to make them show.

James
Go to Top of Page

AKazak

Russia
1205 Posts

Posted - 12/02/2020 :  2:02:11 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Also noticed that vertical gridlines are missing in places where two X-axis table columns coincide.
Is there a way to fix this?

Besides, how do I late the font settings of the Table Row Titles?
I haven't found a dialog/menu to make this.

---
Andrey
Go to Top of Page

YimingChen

1647 Posts

Posted - 12/02/2020 :  5:22:23 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
1. Turn on the major grid line.

2. Currently no way to change font of tick label title. I will report and see if more user is asking for it.

James
Go to Top of Page

Cecilia_syy

65 Posts

Posted - 12/02/2020 :  8:38:25 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Andrey,
We do not provide font option for table row title since it will always follow font of tick label. Do you want to set it to be a different font?

Thanks
Cecilia
Go to Top of Page

AKazak

Russia
1205 Posts

Posted - 12/03/2020 :  01:52:37 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by Cecilia_syy

Hi Andrey,
We do not provide font option for table row title since it will always follow font of tick label. Do you want to set it to be a different font?

Thanks
Cecilia



Yes. Sometimes it seems that table row titles should have font size less than that in the main text.

---
Andrey
Go to Top of Page

AKazak

Russia
1205 Posts

Posted - 12/03/2020 :  02:00:51 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by YimingChen

Hi,

Custom position in table tick label is actually specifying the boundaries of table cells instead of cell centers. e.g. left boundary of first cell is 1.
James



Is this a documented behavior?
If positive, then please share a link to read more.

quote:
Originally posted by YimingChen

Hi,
The column labels rows are just hidden. Double click on the gray area of the worksheet, click Edit Column Label Rows... button to make them show.
James



Got it!
Is this a normal behavior for a worksheet recreated from graph data?

---
Andrey

Edited by - AKazak on 12/03/2020 02:01:13 AM
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