Sparkline is a nice feature in Origin to quickly view the shape or distribution of the data across many columns without having to create graph windows.
Each sparkline object is in fact an embedded graph so it can make your opj file size big and also slow things down such as importing data, openning the opj or switch folders in the project. That’s why by default we only add sparklines for data file with less than 50 columns. But it may happen that all your data files have less than 50 columns and you import a lot of data files. Then sparklines will be added during import to all columns. In such case, we would recommend you set Add Sparklines to No in Import dialogs, such as the following in ASCII Import dialog:
If you already have a project file with all sparklines in columns. Removing all these sparklines manually will be time consuming. So here we made a user-defined toolbar Sparklines.zip. Please download the zip file and unzip it. Then drag and drop the opx file into your running Origin workspace to install it.
A toolbar with two toolbar buttons will appear.
Clicking the 1st button to deletes all sparklines in the opj. Note: There is refresh issue so you may still see the sparklines in worksheet. But if you click on the worksheet, or switch between folders, the sparklines will be gone.
Click on the 2nd button to add sparklines to all columns in active sheet.
Here are the codes behind each button.
Delete Sparklines in whole opj file:
//start of the code
doc -e P //loop through all objects in project
if (%H == "sparklin*")
int nn = sa.GetSize();
for (int ii=1; ii<=nn; ii++)
win -c %(sa.GetAt(ii)$);
//end of the code
Add Sparklines to all columns in active sheet: