Debian Codegraph @

dojox/charting/tests/test_filter.html

raw symbols SCIP
1 <!DOCTYPE HTML>
2 <html lang="en">
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5 <title>Filters</title>
6 <style type="text/css">
7 @import "../../../dojo/resources/dojo.css";
8 @import "../../../dijit/tests/css/dijitTests.css";
9 </style>
10 <!-- required for Tooltip: a default dijit theme: -->
11 <link rel="stylesheet" href="../../../dijit/themes/tundra/tundra.css">
12 <script type="text/javascript" src="../../../dojo/dojo.js" data-dojo-config="isDebug: true, async: true, parseOnLoad: true"></script>
13
14 <script type="text/javascript">
15 var seriesB = [2.6, 1.8, 2, 1, 1.4, 0.7, 2];
16 var dropShadow;
17 var dropShadowBar;
18 var dropShadowLine;
19 require([
20 "dojox/gfx/filters",
21 "dojox/gfx/svgext",
22 "dojox/charting/widget/Chart",
23 "dojox/charting/axis2d/Default",
24 "dojox/charting/plot2d/Columns",
25 "dojox/charting/plot2d/Bars",
26 "dojox/charting/plot2d/Default",
27 "dojox/charting/plot2d/Pie",
28 "dojox/charting/action2d/Shake",
29 "dojox/charting/themes/PlotKit/orange",
30 "dojox/charting/themes/PlotKit/blue",
31 "dojox/charting/themes/PlotKit/green",
32 "dojo/parser"], function(filters){
33 dropShadow = filters.shadows.dropShadow({id: "ds" });
34 dropShadowBar = filters.createFilter({ id: "dsb",
35 x: "-10%", y: "-10%", width: "125%", height: "125%" },
36 [
37 filters.feGaussianBlur({"in":"SourceAlpha","stdDeviation":4}),
38 filters.feOffset({"dx":-5,"dy":5,"result":"offsetBlur"}),
39 filters.feMerge("offsetBlur","SourceGraphic")
40 ]);
41 dropShadowLine = filters.createFilter({ id: "dsl",
42 x: "2%", y: "2%", width: "98%", height: "98%" },
43 [
44 filters.feGaussianBlur({"in":"SourceAlpha","stdDeviation":2}),
45 filters.feOffset({"dx":2,"dy":2,"result":"offsetBlur"}),
46 filters.feMerge("offsetBlur","SourceGraphic")
47 ]);
48 });;
49 </script>
50 </head>
51 <body class="tundra">
52 <h1>Shadows</h1>
53 <p>Testing charts shadows</p>
54 <table border="0" cellspacing="30">
55 <tr>
56 <td>
57 <div data-dojo-type="dojox.charting.widget.Chart" id="chart1" style="width: 300px; height: 300px;">
58 <div class="axis" name="y" font="italic normal normal 8pt Tahoma" natural="true" fixLower="major" fixUpper="major"></div>
59 <div class="axis" name="x" vertical="true" fixUpper="major" includeZero="true"
60 font="italic normal normal 8pt Tahoma"></div>
61 <div class="plot" name="default" type="Bars" fill="'red'" filter="dropShadowBar" stroke="null" gap="5" animate="true"></div>
62 <div class="series" name="Run A" data="1, 2, 0.5, 1.5, 1, 2.8, 0.4"></div>
63 <div class="action" type="Shake"></div>
64 </div>
65 </td>
66 <td>
67 <div data-dojo-type="dojox.charting.widget.Chart" id="chart2" style="width: 300px; height: 300px;">
68 <div class="axis" name="x" font="italic normal normal 8pt Tahoma" natural="true" fixLower="major" fixUpper="major"></div>
69 <div class="axis" name="y" vertical="true" fixUpper="major" includeZero="true"
70 font="italic normal normal 8pt Tahoma"></div>
71 <div class="plot" name="default" type="Columns" fill="'red'" filter="dropShadow" stroke="null" gap="5" animate="true"></div>
72 <div class="series" name="Run A" data="1, 2, 0.5, 1.5, 1, 2.8, 0.4"></div>
73 <div class="action" type="Shake"></div>
74 </div>
75 </td>
76 </tr>
77 <tr>
78 <td>
79 <div data-dojo-type="dojox.charting.widget.Chart" id="chart3" theme="dojox.charting.themes.PlotKit.blue"
80 style="width: 300px; height: 300px;">
81 <div class="plot" name="default" type="Pie" radius="100" fontColor="white" filter="dropShadow" animate="true"></div>
82 <div class="series" name="Series B" array="seriesB"></div>
83 <div class="action" type="Shake"></div>
84 </div>
85 </td>
86 <td>
87 <div data-dojo-type="dojox.charting.widget.Chart" id="chart4" style="width: 300px; height: 300px;">
88 <div class="axis" name="x" font="italic normal normal 8pt Tahoma" natural="true" fixLower="major" fixUpper="major"></div>
89 <div class="axis" name="y" vertical="true" fixUpper="major" includeZero="true"
90 font="italic normal normal 8pt Tahoma"></div>
91 <div class="plot" name="default" type="Default" stroke="{width: 4, color: 'red'}" filter="dropShadowLine" animate="true"></div>
92 <div class="series" name="Run A" data="1, 2, 0.5, 1.5, 1, 2.8, 0.4"></div>
93 </div>
94 </td>
95 </tr>
96 </table>
97 <p>That's all Folks!</p>
98 </body>
99 </html>