| 1 |
<?xml version="1.0" standalone="no"?> |
| 2 |
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" |
| 3 |
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"> |
| 4 |
|
| 5 |
<!-- |
| 6 |
|
| 7 |
Licensed to the Apache Software Foundation (ASF) under one or more |
| 8 |
contributor license agreements. See the NOTICE file distributed with |
| 9 |
this work for additional information regarding copyright ownership. |
| 10 |
The ASF licenses this file to You under the Apache License, Version 2.0 |
| 11 |
(the "License"); you may not use this file except in compliance with |
| 12 |
the License. You may obtain a copy of the License at |
| 13 |
|
| 14 |
http://www.apache.org/licenses/LICENSE-2.0 |
| 15 |
|
| 16 |
Unless required by applicable law or agreed to in writing, software |
| 17 |
distributed under the License is distributed on an "AS IS" BASIS, |
| 18 |
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 19 |
See the License for the specific language governing permissions and |
| 20 |
limitations under the License. |
| 21 |
|
| 22 |
--> |
| 23 |
<!-- ========================================================================= --> |
| 24 |
<!-- Illustrates how SVG can be used for high quality graphs. --> |
| 25 |
<!-- --> |
| 26 |
<!-- @author [email protected] --> |
| 27 |
<!-- @author [email protected] --> |
| 28 |
<!-- @version $Id$ --> |
| 29 |
<!-- ========================================================================= --> |
| 30 |
|
| 31 |
<?xml-stylesheet type="text/css" href="tests/resources/style/test.css" ?> |
| 32 |
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="body" width="450" height="500" xml:space="preserve" viewBox="0 0 450 500"> |
| 33 |
<title>Bar Chart</title> |
| 34 |
|
| 35 |
<g id="barChart" transform="translate(40, 100)" fill-rule="evenodd" clip-rule="evenodd" stroke="none" class="legend" |
| 36 |
stroke-width="1" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" style="text-anchor:start"> |
| 37 |
|
| 38 |
<g id="GridAndLegend" style="stroke:none;"> |
| 39 |
<g stroke="black"> |
| 40 |
|
| 41 |
<!-- "floor" and "wall" --> |
| 42 |
<path fill="lightgray" stroke="darkgray" d="M 27,240 l 15,-15 v -224 l -15,15" /> |
| 43 |
<path fill="lightgray" stroke="darkgray" d="M 41,225 v -224 h 316 v 224" /> |
| 44 |
<path fill="darkgray" stroke="none" d="M 27,240 l 15,-15 h 316 l -15,15" /> |
| 45 |
|
| 46 |
<!-- axis lines --> |
| 47 |
<path d="M 27,240 h 316"/> |
| 48 |
<path d="M 27,240 v -224"/> |
| 49 |
|
| 50 |
<!-- value axis major gridlines --> |
| 51 |
<g style="fill:none;"> |
| 52 |
<path d="M 27,202 l 15,-15 h 316" /> |
| 53 |
<path d="M 27,165 l 15,-15 h 316" /> |
| 54 |
<path d="M 27,127 l 15,-15 h 316" /> |
| 55 |
<path d="M 27, 90 l 15,-15 h 316" /> |
| 56 |
<path d="M 27, 53 l 15,-15 h 316" /> |
| 57 |
</g> |
| 58 |
|
| 59 |
<!-- category axis major ticks --> |
| 60 |
<path d="M 27,245 v -5"/> |
| 61 |
<path d="M 106,245 v -5"/> |
| 62 |
<path d="M 185,245 v -5"/> |
| 63 |
<path d="M 264,245 v -5"/> |
| 64 |
|
| 65 |
<!-- value axis minor ticks --> |
| 66 |
<path d="M 22,240 h 5"/> |
| 67 |
<path d="M 22,202 h 5"/> |
| 68 |
<path d="M 22,165 h 5"/> |
| 69 |
<path d="M 22,127 h 5"/> |
| 70 |
<path d="M 22, 90 h 5"/> |
| 71 |
<path d="M 22, 53 h 5"/> |
| 72 |
<path d="M 22, 15 h 5"/> |
| 73 |
</g> |
| 74 |
|
| 75 |
<text transform="matrix(1 0 0 1 54 256)">Shoe</text> |
| 76 |
<text transform="matrix(1 0 0 1 142 256)">Car</text> |
| 77 |
<text transform="matrix(1 0 0 1 211 256)">Travel</text> |
| 78 |
<text transform="matrix(1 0 0 1 285 256)">Computer</text> |
| 79 |
|
| 80 |
<text transform="matrix(1 0 0 1 13 247)"><tspan x="0" y="0">0</tspan></text> |
| 81 |
<text transform="matrix(1 0 0 1 6 209)"><tspan x="0" y="0">10</tspan></text> |
| 82 |
<text transform="matrix(1 0 0 1 6 171)"><tspan x="0" y="0">20</tspan></text> |
| 83 |
<text transform="matrix(1 0 0 1 6 134)"><tspan x="0" y="0">30</tspan></text> |
| 84 |
<text transform="matrix(1 0 0 1 6 96)"><tspan x="0" y="0">40</tspan></text> |
| 85 |
<text transform="matrix(1 0 0 1 6 60)"><tspan x="0" y="0">50</tspan></text> |
| 86 |
<text transform="matrix(1 0 0 1 6 22)"><tspan x="0" y="0">60</tspan></text> |
| 87 |
</g> |
| 88 |
|
| 89 |
<g id="ShoeBar"> |
| 90 |
<path style="fill:#8686E0;" d="M 86,240 v -37 l 15 -15 v 37 l -15,15 z"/> |
| 91 |
<path style="fill:#5B5B97;" d="M 86,203 h -39 l 15 -15 h 39 l -15,15 z"/> |
| 92 |
<path style="fill:#7575C3;" d="M 47,203 v 37 h 39 v -37 H 47 z"/> |
| 93 |
</g> |
| 94 |
<g id="CarBar"> |
| 95 |
<path style="fill:#8686E0;" d="M 165,240 v -74 l 15 -15 v 74 l -15,15 z"/> |
| 96 |
<path style="fill:#5B5B97;" d="M 165,166 h -39 l 15 -15 h 39 l -15,15 z"/> |
| 97 |
<path style="fill:#7575C3;" d="M 126,166 v 74 h 39 v -74 h -39 z"/> |
| 98 |
</g> |
| 99 |
<g id="TravelBar"> |
| 100 |
<path style="fill:#8686E0;" d="M 244,240 v -37 l 15 -15 v 37 l -15,15 z"/> |
| 101 |
<path style="fill:#5B5B97;" d="M 244,203 h -39 l 15 -15 h 39 l -15,15 z"/> |
| 102 |
<path style="fill:#7575C3;" d="M 205,203 v 37 h 39 v -37 h -39 z"/> |
| 103 |
</g> |
| 104 |
<g id="ComputerBar"> |
| 105 |
<path style="fill:#8686E0;" d="M 323,240 v -224 l 15 -15 v 224 l -15,15 z"/> |
| 106 |
<path style="fill:#5B5B97;" d="M 323, 16 h -39 l 15 -15 h 39 l -15,15 z"/> |
| 107 |
<path style="fill:#7575C3;" d="M 284, 16 v 224 h 39 v -224 h -39 z"/> |
| 108 |
</g> |
| 109 |
|
| 110 |
</g> |
| 111 |
|
| 112 |
<!-- ============================================================= --> |
| 113 |
<!-- Batik sample mark --> |
| 114 |
<!-- ============================================================= --> |
| 115 |
<use xlink:href="batikLogo.svg#Batik_Tag_Box" /> |
| 116 |
|
| 117 |
</svg> |