Version 2.0
Index : Tag Construction


Tag Construction
 

Before beginning construction on a tag, you will need to decide what kind of data you are going to use...

  • Static Data (data that is hard coded into the tag)
  • Dynamic Data (data that is obtained from a live database at the time of execution)

If you want to know more about this, see the Data Source Tutorial


The Makeup Of A Tag

Let us first go back to the basics of a tag.

A CFXGraphicsServer tag has the following format:

 
<CFX_GraphicsServer
...
>

where '...' represents the attributes of the tag. An attribute is like a property for the tag. Each attribute looks like this:

 
ATTRIBUTE_NAME="..."

where '...' is the value of the attribute.

So a complete tag looks something like this:

 
<CFX_GraphicsServer MYATTRIBUTE="Hello"
MYOTHERATTRIBUTE="3.4" etc...
>

Note that...

  • There are no spaces around an '=' sign
  • All values, without exception, are encased in " "

A Real Tag

A real CFXGraphicsServer tag is made up of lots of attributes, what attributes you specify determine how your graph will look. There are however a few rules about what you must specify, and what combinations of attributes you can use...

That's all of the rules - what else you do is up to you.

Let's now have a look and Static and Dynamic graphs individually, to see how to make them work. I shall assume that you know a little about data sources and queries, if not, please read the data sources and query tutorials.


Dynamic Graphs


Static Graphs

What is ST_DataSet{0..}? - well, ST_ (or ST class) attributes are for Static graphs. If you are going to specify two-dimensional data in a static graph then you need one attribute for each set (or series) of data. {0..} means "replace me with 0, 1, 2 etc.." so that you can build up as many sets as you like.


[footer]