From: <nic...@us...> - 2004-02-16 13:56:22
|
Update of /cvsroot/jcharts/krysalis-jcharts/whiteboard/xml/src/examples/charts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7772 Added Files: areachart1.xml barchart1.xml data1.xml data2.xml data3.xml graph1.xml graph2.xml graph3.xml graph4.xml graph5.xml graph6.xml linechart1.xml piechart1.xml radarchart1.xml Log Message: make whiteboard xml work --- NEW FILE: areachart1.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="areachart"> <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) --> <stroke> CC6666 </stroke> <stroke-width> 1 </stroke-width> <!-- etc ... all stroke-* of the SVG spec can be used here --> </style> <!-- attributes for a datapoint --> <point> <normal> <!-- shape of the datapoint --> <shape name="rectangle"> <width>10</width> <height>5</height> </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> <line> <!-- The style chapter - These elements are like the SVG style attributes. --> <style> <!-- The color (in RGB) --> <stroke> CCCC66 </stroke> <stroke-width> 0.5 </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 name="ellipse"> <width>5</width> <height>10</height> </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> --- NEW FILE: barchart1.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="barchart"> <bars> <!-- The first bar is for the first dataset in the graph The second bar for the second one etc. (you get the picture ;) ) --> <bar> <!-- 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> FF9966 </stroke> <stroke-width> 2 </stroke-width> <!-- etc ... all stroke-* of the SVG spec can be used here --> </style> <region> <!-- Define the fill of the region - see also the "style" element for line --> <style> <fill> white </fill> <fillrule> nonzero </fillrule> <!-- etc --> </style> </region> </bar> <bar> <!-- 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> FFCC66 </stroke> <stroke-width> 2 </stroke-width> <!-- etc ... all stroke-* of the SVG spec can be used here --> </style> <region> <!-- Define the fill of the region - see also the "style" element for line --> <style> <fill> white </fill> <fillrule> nonzero </fillrule> <!-- etc --> </style> </region> </bar> </bars> </chartstyle> --- NEW FILE: data1.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>490.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: data2.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>40</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>38.3</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>150.2</y></v> <v><y>174.6</y></v> <v><y>33.6</y></v> <v><y>54.6</y></v> <v><y>54.6</y></v> <v><y>117.6</y></v> <v><y>177.6</y></v> <v><y>176.6</y></v> <v><y>8.6</y></v> <v><y>30.6</y></v> <v><y>0.6</y></v> <v><y>13.6</y></v> <v><y>34.6</y></v> <v><y>72.6</y></v> </data> --- NEW FILE: data3.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>490.6</y></v> <v><y>7.6</y></v> </data> --- NEW FILE: graph1.xml --- <wings country="EN" lang="en"> <ggroup> <gset width="800" height="500"> <title> Wings graph1 </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> linechart1.xml </config> </style> <dataset> <data> <!-- the location of the data. --> <location> data1.xml </location> </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> data2.xml </location> </data> <name> South </name> </dataset> </graph> <!-- The legend. FIXME: work this out --> <legend> <position> south </position> </legend> </gset> </ggroup> </wings> --- NEW FILE: graph2.xml --- <wings xmlns="http://wings.krysalis.org/2002" country="EN" lang="en"> <ggroup> <gset width="350" height="200"> <title> Wings graph2 </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> barchart1.xml </config> </style> <dataset> <data> <!-- the location of the data. --> <location> data1.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> data2.xml </location> </data> <name> South </name> </dataset> </graph> <!-- The legend. FIXME: work this out --> <legend> <position> south </position> </legend> </gset> </ggroup> </wings> --- NEW FILE: graph3.xml --- <wings xmlns="http://wings.krysalis.org/2002" country="EN" lang="en"> <ggroup> <gset width="700" height="400"> <title> Wings graph3 </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> barchart1.xml </config> </style> <dataset> <data> <!-- the location of the data. --> <location> data1.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> data2.xml </location> </data> <name> South </name> </dataset> </graph> <graph combine="compare"> <style> <!-- Use the specified "style" sheet. Format of the url is yet to be specified. --> <config> linechart1.xml </config> </style> <dataset> <data> <!-- the location of the data. --> <location> data1.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> data2.xml </location> </data> <name> South </name> </dataset> </graph> <!-- The legend. FIXME: work this out --> <legend> <position> south </position> </legend> </gset> </ggroup> </wings> --- NEW FILE: graph4.xml --- <wings country="EN" lang="en"> <ggroup> <gset width="800" height="500"> <title> Wings graph4 </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> piechart1.xml </config> </style> <dataset> <data> <!-- the location of the data. --> <location> data3.xml </location> </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> </graph> <!-- The legend. FIXME: work this out --> <legend> <position> south </position> </legend> </gset> </ggroup> </wings> --- NEW FILE: graph5.xml --- <wings country="EN" lang="en"> <ggroup> <gset width="800" height="500"> <title> Wings graph1 </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> areachart1.xml </config> </style> <dataset> <data> <!-- the location of the data. --> <location> data1.xml </location> </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> data2.xml </location> </data> <name> South </name> </dataset> </graph> <!-- The legend. FIXME: work this out --> <legend> <position> south </position> </legend> </gset> </ggroup> </wings> --- NEW FILE: graph6.xml --- <wings country="EN" lang="en"> <ggroup> <gset width="800" height="500"> <title> Wings graph1 </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> radarchart1.xml </config> </style> <dataset> <data> <!-- the location of the data. --> <location> data1.xml </location> </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> data2.xml </location> </data> <name> South </name> </dataset> </graph> <!-- The legend. FIXME: work this out --> <legend> <position> south </position> </legend> </gset> </ggroup> </wings> --- NEW FILE: linechart1.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) --> <stroke> CC6666 </stroke> <stroke-width> 1 </stroke-width> <!-- etc ... all stroke-* of the SVG spec can be used here --> </style> <!-- attributes for a datapoint --> <point> <normal> <!-- shape of the datapoint --> <shape name="rectangle"> <width>10</width> <height>5</height> </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> <line> <!-- The style chapter - These elements are like the SVG style attributes. --> <style> <!-- The color (in RGB) --> <stroke> CCCC66 </stroke> <stroke-width> 0.5 </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 name="ellipse"> <width>5</width> <height>10</height> </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> --- NEW FILE: piechart1.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="piechart2d"> <pies> <!-- The first line is for the first dataset in the graph The second line for the second one etc. (you get the picture ;) ) --> <pie> <!-- The style chapter - These elements are like the SVG style attributes. --> <style> <!-- The color (in RGB) --> <stroke> CC6666 </stroke> <stroke-width> 1 </stroke-width> <!-- etc ... all stroke-* of the SVG spec can be used here --> </style> <!-- attributes for a datapoint --> <point> <normal> <!-- shape of the datapoint --> <shape name="rectangle"> <width>10</width> <height>5</height> </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> </pie> <pie> <!-- The style chapter - These elements are like the SVG style attributes. --> <style> <!-- The color (in RGB) --> <stroke> CCCC66 </stroke> <stroke-width> 0.5 </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 name="ellipse"> <width>5</width> <height>10</height> </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> </pie> <pie> <!-- The style chapter - These elements are like the SVG style attributes. --> <style> <!-- The color (in RGB) --> <stroke> FF9966 </stroke> <stroke-width> 0.5 </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 name="ellipse"> <width>5</width> <height>10</height> </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> </pie> <pie> <!-- The style chapter - These elements are like the SVG style attributes. --> <style> <!-- The color (in RGB) --> <stroke> FFCC66 </stroke> <stroke-width> 0.5 </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 name="ellipse"> <width>5</width> <height>10</height> </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> </pie> </pies> </chartstyle> --- NEW FILE: radarchart1.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="radarchart"> <radars> <!-- The first line is for the first dataset in the graph The second line for the second one etc. (you get the picture ;) ) --> <radar> <!-- The style chapter - These elements are like the SVG style attributes. --> <style> <!-- The color (in RGB) --> <stroke> CC6666 </stroke> <stroke-width> 1 </stroke-width> <!-- etc ... all stroke-* of the SVG spec can be used here --> </style> <!-- attributes for a datapoint --> <point> <normal> <!-- shape of the datapoint --> <shape name="rectangle"> <width>10</width> <height>5</height> </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> </radar> <radar> <!-- The style chapter - These elements are like the SVG style attributes. --> <style> <!-- The color (in RGB) --> <stroke> CCCC66 </stroke> <stroke-width> 0.5 </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 name="ellipse"> <width>5</width> <height>10</height> </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> </radar> <radar> <!-- The style chapter - These elements are like the SVG style attributes. --> <style> <!-- The color (in RGB) --> <stroke> FF9966 </stroke> <stroke-width> 0.5 </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 name="ellipse"> <width>5</width> <height>10</height> </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> </radar> <radar> <!-- The style chapter - These elements are like the SVG style attributes. --> <style> <!-- The color (in RGB) --> <stroke> FFCC66 </stroke> <stroke-width> 0.5 </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 name="ellipse"> <width>5</width> <height>10</height> </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> </radar> </radars> </chartstyle> |