Rising Falling Arrow

T

Techhead

How can I implement a rising/falling trend arrow based on a number
that may rise or fall. For example, if the number (variable) is 100
and changes to 101, the "arrow" changes to "up", if the number goes
back to 100, the arrow changes to "down". I'm not a statistical guru
but I am sure there is a definition for this.

I am getting my number variable from a sql server via a query.
 
V

VK

How can I implement a rising/falling trend arrow based on a number
that may rise or fall. For example, if the number (variable) is 100
and changes to 101, the "arrow" changes to "up", if the number goes
back to 100, the arrow changes to "down". I'm not a statistical guru
but I am sure there is a definition for this.

I am getting my number variable from a sql server via a query.

If you want to make it client-side then te simpliest way IMHO is to
make three small - say 16x16 - gif images:
1) transparent
2) arrow up
3) arrow down

Then all stock labels are served with transparent gif first and client-
side you do something like:

if (oldVal >= newVal) {
imgObject.src = 'arrowUp.gif';
}
else {
imgObject.src = 'arrowDown.gif';
}

Actually such kind of things is more reliable and natural to prepare
server-side rather than using client-side scripting - IMHO
 
M

McKirahan

Techhead said:
How can I implement a rising/falling trend arrow based on a number
that may rise or fall. For example, if the number (variable) is 100
and changes to 101, the "arrow" changes to "up", if the number goes
back to 100, the arrow changes to "down". I'm not a statistical guru
but I am sure there is a definition for this.

I am getting my number variable from a sql server via a query.

Do you mean an image of an up and down arrow?

Will you be getting two numbers so you cant compare them?

Tell us more...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top