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
 All Forums
 Origin Forum
 Origin Forum
 how to display values in or above bar graph

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
hajo_old Posted - 01/28/2003 : 10:52:47 AM
Hello, all

how can I display the values above or within the bars of a bar graph?
Pleas help!

Thanks
HJ Koch
4   L A T E S T    R E P L I E S    (Newest First)
tib Posted - 01/30/2003 : 05:52:20 AM
Hi HJ and Laurie,

here is a rather cumbersome method to display labels with a LabTalk script.
It places individual labels from the active dataset in your graph.
Of course it's not as comfortable as the new Version Laurie promised for the next Version of Origin.
Maybe there's also another more elegant way with the current version?

HJ, maybe that works for you if you don't want to duplicate, blow up and mess up your existing data.
Of course, you have to play around with the positioning and offsets etc...

Tilman.


TMP=%[%C,'_']!wks.MaxRows; // get max. row of active dataset;
loop(i,1,TMP){
yyy=%C[i]; // y position;
xxx=xvalue(i,%C); // x position;
label -a xxx yyy -n %C$(i) (=0); // initialize label;
v1=%C[i]; // set value;
draw -n %C$(i) -v set -u; // change value;
%A=%C$(i).text$;
%C$(i).text$=%[%A,>'=']; // remove '=';
};
doc -uw; // refresh graph;

Unfortunately, you have to run the script again every time the data has been changed...

Edited by - tib on 01/30/2003 06:09:22 AM
Laurie Posted - 01/29/2003 : 2:13:42 PM
Yes, we agree that this would be a nice feature. As you say, it should be possible to simply read out the Y-values for labeling, instead of creating a duplicate column. We've logged this information in our inhouse development database, so we can consider this for the next version of Origin.

OriginLab Technical Support
hajo_old Posted - 01/29/2003 : 02:55:33 AM
Hallo, Laurie

thanks, that works!

But in my opinion it should also be possible to simply read out the Y-values for labeling, instead to fill in the labels into a seperat column, because there is no different information in the new column, only the type is set to label! It is getting really complex to import the labels if you have huge worksheets with about 20 colums, so you have to add another 20 colums yust for labeling the graphs!

Isn't there an other solution? Would that be a new feature?

Thanks
HJKoch
Laurie Posted - 01/28/2003 : 5:02:22 PM
Add a new column to your worksheet, set the designation as Label. You can right click on the column to do this. Copy the Y data to the Label column. Now add this label column to your graph.

OriginLab Technical Support

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000