krysalis-jcharts/whiteboard/xml/src/resources/formats dataformat-proposition.xml,NONE,1.1 dataformat-proposition2.xml,NONE,1.1 graphformat-proposition.xml,NONE,1.1 linechart-proposition.xml,NONE,1.1

[email protected] Mon, 16 Feb 2004 05:47:33 -0800
Newsgroups gmane.comp.krysalis.jcharts.cvs
Message-ID <[email protected]>
Update of /cvsroot/jcharts/krysalis-jcharts/whiteboard/xml/src/resources/formats
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7546

Added Files:
	dataformat-proposition.xml dataformat-proposition2.xml 
	graphformat-proposition.xml linechart-proposition.xml 
Log Message:
make whiteboard xml work

--- NEW FILE: dataformat-proposition.xml ---

<!-- The data --> 
<data>
	<!-- v is value (datapoint) -->
	<v>
		<!-- y is y-value
			 x is x-value. 
			 If one of these is not specified, some default value can be calculated.
			 If, for example, not one x value is specified for the whole dataset, 
			 they will be placed on regular intervals.
			 x-values are necessary for defining scatterplots, for example.
			 z-values might also be possible -->
		<y>80</y>
		<!-- c stands for "content". This can be used for defining tooltips, for example -->
		<c>(1990,North) = 80</c>
		<!-- l stands for "link". Format of the link should be investigated further (I suspect
			this format is too much html-oriented) -->
		<l>/1990/North</l>
	</v>
	<v>
		<y>77.6</y>
		<!-- Emphasize:
			if it's a pie chart, let this piece jump out.
			Other charts could provide other emphasizing mechanisms,
			maybe even dependent on the "style" sheet
		-->
		<emphasize />
	</v>
	<v><y>75.7</y></v>
	<v><y>76.6</y></v>
	<v><y>76.6</y></v>
	<v><y>75.6</y></v>
	<v><y>75.6</y></v>
	<v><y>75.6</y></v>
	<v><y>74.6</y></v>
	<v><y>74.6</y></v>
	<v><y>74.6</y></v>
	<v><y>73.6</y></v>
	<v><y>73.6</y></v>
	<v><y>73.6</y></v>
	<v><y>73.6</y></v>
	<v><y>72.6</y></v>
	<v><y>72.6</y></v>
</data>


--- NEW FILE: dataformat-proposition2.xml ---

<!-- The data --> 
<data>
	<!-- v is value (datapoint) -->
	<v>
		<!-- y is y-value
			 x is x-value. 
			 If one of these is not specified, some default value can be calculated.
			 If, for example, not one x value is specified for the whole dataset, 
			 they will be placed on regular intervals.
			 x-values are necessary for defining scatterplots, for example.
			 z-values might also be possible -->
		<y>80</y>
		<!-- c stands for "content". This can be used for defining tooltips, for example -->
		<c>(1990,North) = 80</c>
		<!-- l stands for "link". Format of the link should be investigated further (I suspect
			this format is too much html-oriented) -->
		<l>/1990/North</l>
	</v>
	<v>
		<y>77.6</y>
		<!-- Emphasize:
			if it's a pie chart, let this piece jump out.
			Other charts could provide other emphasizing mechanisms,
			maybe even dependent on the "style" sheet
		-->
		<emphasize />
	</v>
	<v><y>40.7</y></v>
	<v><y>76.6</y></v>
	<v><y>77.6</y></v>
	<v><y>74.6</y></v>
	<v><y>74.6</y></v>
	<v><y>74.6</y></v>
	<v><y>77.6</y></v>
	<v><y>77.6</y></v>
	<v><y>76.6</y></v>
	<v><y>78.6</y></v>
	<v><y>70.6</y></v>
	<v><y>77.6</y></v>
	<v><y>73.6</y></v>
	<v><y>74.6</y></v>
	<v><y>76.6</y></v>
</data>


--- NEW FILE: graphformat-proposition.xml ---
<wings xmlns="http://wings.krysalis.org/2002" country="EN" lang="en">
	<ggroup>
		<gset width="350" height="200">
			<title>
				Wings sample data
			</title>
		
			<axes>
				<x-axis>
					<name>
						Year
					</name>
					<labels>
						<explicit>
							<n>1990</n>
							<n>winter1</n>
							<n>spring1</n>
							<n>summer1</n>
							<n>autumn1</n>
							<n>1991</n>
							<n>winter2</n>
							<n>spring2</n>
							<n>summer2</n>
							<n>autumn2</n>
							<n>1992</n>
							<n>winter3</n>
							<n>spring3</n>
							<n>summer3</n>
							<n>autumn3</n>
							<n>1993</n>
							<n>winter4</n>
						</explicit>
						<!-- Defaults: if no label is specified at a given point, use the default label.
							 In fact, you can consider this as follows:
								- draw the default labels
								- draw the specified labels, overwriting the default one if necessary
						-->
						<default>
							<min>
								1990
							</min>
							<max>
								1993
							</max>
							<interval>
								<!-- provide a label every 5 datapoints -->
								5
							</interval>
						</default>						
					</labels>
				</x-axis>
				<y-axis>
					<name>
						Income
					</name>
					<labels>
						<default>
							<min>
								70
							</min>
							<max>
								120
							</max>
							<interval>
								10
							</interval>
						</default>
					</labels>
					<position>
						left
					</position>
				</y-axis>
			</axes>
		
			<!-- combine is the way the datasets are placed together. I imagine "compare", "add" will be
				possible among others -->
			<graph combine="compare">
				<style>
					<!-- Use the specified "style" sheet.
						Format of the url is yet to be specified. -->
					<config>
						file:///home/tomk/cvsrep/krysalis-wings/formats/linechart-proposition.xml
					</config>
				</style>
				<dataset>
					<data>
						<!-- the location of the data. -->
						<location>
							file:///home/tomk/cvsrep/krysalis-wings/formats/dataformat-proposition.xml
						</location>
					</data>data>
					<!-- A name for the legend -->
					<name>
						North
					</name>
					<!-- We can remap the axes. Handy for those nifty 3d-graphs 
						This example just gives the defaults. --> 
					<axes>
						<x-axis>x</x-axis>
						<y-axis>y</y-axis>
					</axes>
				</dataset>
				<dataset>
					<data>
						<location>
							file:///home/tomk/cvsrep/krysalis-wings/formats/dataformat-proposition2.xml
						</location>
					</data>
					<name>
						South
					</name>
				</dataset>
			</graph>
			
			<!-- The legend. FIXME: work this out -->
			<legend>
				<position>
					south
				</position>
			</legend>
			
		</gset>
	</ggroup>


</wings>


--- NEW FILE: linechart-proposition.xml ---
<?xml version="1.0" ?>
<!-- add the type to the root element, so the program can decide which interpreter to call to interpret the rest of the sheet
	It will of course also influence the renderer that is called. --> 
<chartstyle type="linechart">
	<lines>
		<!-- The first line is for the first dataset in the graph
			The second line for the second one
			etc. (you get the picture ;) ) -->
		<line>
			<!-- The style chapter - These elements are like the SVG style attributes. -->
			<style>
				<!-- The color (in RGB - FIXME: is it possible to define colors in RGB format in SVG? -->
				<stroke>
					7575C3
				</stroke>
				<stroke-width>
					2
				</stroke-width>
				<!-- etc ... all stroke-* of the SVG spec can be used here -->
				
			</style>
			
			<!-- attributes for a datapoint -->
			<point>
				<normal>
					<!-- shape of the datapoint: An svg shape definition
						The (0,0) point of this coordinate system will be translated to the actual datapoint on the
						 chart. -->
					<shape>
						<circle style="fill:blue;stroke:white;" cx="0" cy="0" r="1"/>
					</shape>
				</normal>
				<!-- Which attributes to use for emphasized points --> 
				<emphasized>
					<!-- shape of the datapoint: An svg shape definition
						The (0,0) point of this coordinate system will be translated to the datapoint of the
						 chart. -->
					<shape>
						<circle style="fill:red;stroke:red;" cx="0" cy="0" r="1"/>
					</shape>
				</emphasized>
			</point>
			<region>
				<!-- Define the fill of the region - see also the "style" element for line -->
				<style>
					<fill>
						white
					</fill>
					<fillrule>
						nonzero
					</fillrule>
					<!-- etc -->
					
				</style>
			</region>
		</line>
	</lines>
</chartstyle>




-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click