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
 Removing sparklines from a 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
1254 Posts

Posted - 02/17/2026 :  1:32:42 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
OriginPro 2026b (64-bit) Beta2 10.3.5.62
Windows 10 Pro

Greetings!

How do I remove sparklines from a column of a worksheet using LT?

I found
del -spk;
that deletes all project sparklines (https://www.originlab.com/doc/LabTalk/ref/Delete-cmd), but this is not what I actually want.

Thank you.

---
Andrey

Edited by - AKazak on 02/17/2026 1:34:32 PM

ChaoC

USA
231 Posts

Posted - 02/19/2026 :  5:12:25 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hello Andrey,

Sparklines are embedded graphs so you can delete the graph to delete the sparkline.

win -c <window name>; will delete the graph so we write some code to find the sparkline graph shortname.

For example, we want to remove the sparkline in [Book1]Sheet1!E:

string spklineName$=[Book1]Sheet1!col(E)[S]$;
i=spklineName.TrimLeft(embedding:);
win -c %(spklineName$);

Best,
Chao

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