Dissemino provides a series of visible entity tags which generate SVG (Scalable Vector Graphics) tags. Among these are chart visible entity tags as follows:-
Pie Charts: These have the simplest data as they are a single list of values, each of which must be named and given a color. Eg:-
<center> <xchartPie id="pie1" header="Fig 1: Make up of economy" footer="Courtesy of Masters of the Universe Inc" font="10px Arial" bgcolor="C0C0FF" rad="120" dtype="BASETYPE_INT32"> <part color="FF0000" name="Primary (food)" value="22"/> <part color="00FF00" name="Manufacturing" value="27"/> <part color="0000FF" name="Services" value="90"/> </xchartPie> </center>
Line Charts: These comprise a set of values for the horizontal X-axis, and one or more sets of vertical Y-axis values. For example Fig 1 below is produced by the following tags:-
<center> <xchartStd id="line1" header="Fig 2: Make up of economy" footer="Courtesy of Masters of the Universe Inc" index="horizontal" font="10px Arial" bgcolor="C0C0FF"> <axisY header="Output ($bn)" datatype="BASETYPE_INT32" start="0" step="10" noSteps="10" slotPx="30"/> <axisX header="Year" datatype="BASETYPE_INT32" start="2000" step="1" noSteps="15" slotPx="40"/> <dataset color="FF0000" name="Primary (food)" data="16.0, 16.4, 17.2, 18.6, 19.1, 19.4, 19.7, 20.1, 20.5, 20.7, 21.0, 21.5, 21.8, 20.2, 21.1, 22.1"/> <dataset color="00FF00" name="Manufacturing" data="20.0, 20.2, 20.4, 20.7, 21.0, 21.4, 21.8, 22.3, 22.9, 23.2, 23.4, 23.6, 24.1, 24.8, 25.5, 27.0"/> <dataset color="0000FF" name="Services" data="70.0, 71.1, 72.2, 74.0, 74.6, 76.1, 77.1, 78.2, 79.0, 80.1, 80.0, 82.0, 84.0, 90.0, 88.0, 88.4"/> </xchartBar> </center>
Bar Charts are a variant of the line charts and have the same data layout. For example Fig 2 below is produced by the following tags:-
<center> <xchartBar id="bar1" header="Fig 3: Make up of economy" footer="Courtesy of Masters of the Universe Inc" index="horizontal" font="10px Arial" bgcolor="C0C0FF"> <axisY header="Output ($bn)" datatype="BASETYPE_INT32" start="0" step="20" noSteps="10" slotPx="30"/> <axisX header="Year" datatype="BASETYPE_INT32" start="2000" step="1" noSteps="15" slotPx="40"/> <dataset color="FF0000" name="Primary (food)" data="16.0, 16.4, 17.2, 18.6, 19.1, 19.4, 19.7, 20.1, 20.5, 20.7, 21.0, 21.5, 21.8, 20.2, 21.1, 22.1"/> <dataset color="00FF00" name="Manufacturing" data="20.0, 20.2, 20.4, 20.7, 21.0, 21.4, 21.8, 22.3, 22.9, 23.2, 23.4, 23.6, 24.1, 24.8, 25.5, 27.0"/> <dataset color="0000FF" name="Services" data="70.0, 71.1, 72.2, 74.0, 74.6, 76.1, 77.1, 78.2, 79.0, 80.1, 80.0, 82.0, 84.0, 90.0, 88.0, 88.4"/> </xchartBar> </center>
Note that no diemsions are specified as these are implied. The attributes of start, step, noSteps and slotPx in the <axisX> and <axisY> tags, respectively mean the lowest recordable value, the increment per marker, the number of markers (in addition to the origin) and the number of pixels per marker. The maximum recordable value is not stated but is given by start + (step * noSteps). The extent of the axis given by slotPx * (noSteps + 1). Note that the number of slots (values presented), is always 1 greater than the number of steps. Note also that the <dataset> tags only supply the vertical Y-axis values.