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 for Programming
 LabTalk Forum
 Pie Chart Horizontal offset
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

couturier

France
291 Posts

Posted - 07/18/2018 :  07:54:51 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): 2018b
Operating System: win10

Is it possible to read/write the horizontal offset of a pie chart ?

thanks

yuki_wu

896 Posts

Posted - 07/18/2018 :  10:23:55 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

I am afraid that there is no such option in LabTalk. How about using Origin C?
void SetPieChartOffset()
{
	GraphLayer gl = Project.ActiveLayer();
	Tree tr;
	tr.Root.Pies.Pie1.Geometry.Offset.nVal = 50;
	if( 0 == gl.UpdateThemeIDs(tr.Root) )
			gl.ApplyFormat(tr, true, true);
}

Regards,
Yuki

OriginLab
Go to Top of Page

couturier

France
291 Posts

Posted - 07/19/2018 :  06:38:28 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks

I wish I could use it easily, without having to load and complie an OC function.
I replaced the default pie template with a new one with plotting donut graph. It includes a circle that resizes itself automatically to be centered and round. But I can't deal with pie position.
Go to Top of Page

yuki_wu

896 Posts

Posted - 07/19/2018 :  11:20:38 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

We have added this requirement to our improvement tracking database (ID: ORG-18647).

Hope we can use this new LT command in the future.

Thanks,
Yuki

OriginLab
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