Page Menu
Home
Code
Search
Configure Global Search
Log In
Files
F948960
test_widget2d.html
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
3 KB
Subscribers
None
test_widget2d.html
View Options
<
html
>
<
head
>
<
title
>
Chart 2D
</
title
>
<
meta
http-equiv
=
"Content-Type"
content
=
"text/html; charset=utf-8"
/>
<
style
type
=
"text/css"
>
@
import
"../../../dojo/resources/dojo.css"
;
@
import
"../../../dijit/tests/css/dijitTests.css"
;
</
style
>
<!--
The next line should include Microsoft's Silverligth.js, if you plan to use the silverlight backend
<script type="text/javascript" src="Silverlight.js"></script>
-->
<
script
type
=
"text/javascript"
src
=
"../../../dojo/dojo.js"
djConfig
=
"isDebug: true, parseOnLoad: true"
></
script
>
<
script
type
=
"text/javascript"
src
=
"../../lang/functional.js"
></
script
>
<
script
type
=
"text/javascript"
src
=
"../Theme.js"
></
script
>
<
script
type
=
"text/javascript"
src
=
"../scaler.js"
></
script
>
<
script
type
=
"text/javascript"
src
=
"../Chart2D.js"
></
script
>
<
script
type
=
"text/javascript"
src
=
"../widget/Chart2D.js"
></
script
>
<
script
type
=
"text/javascript"
>
dojo
.
require
(
"dojox.charting.widget.Chart2D"
);
dojo
.
require
(
"dojox.charting.themes.PlotKit.orange"
);
dojo
.
require
(
"dojox.charting.themes.PlotKit.blue"
);
dojo
.
require
(
"dojox.charting.themes.PlotKit.green"
);
dojo
.
require
(
"dojox.data.HtmlTableStore"
);
seriesB
=
[
2.6
,
1.8
,
2
,
1
,
1.4
,
0.7
,
2
];
dojo
.
require
(
"dojo.parser"
);
// scan page for widgets and instantiate them
</
script
>
</
head
>
<
body
>
<
h1
>
Chart 2D
</
h1
>
<
p
>
Examples of charts using widgets.
</
p
>
<
div
dojoType
=
"dojox.data.HtmlTableStore"
tableId
=
"tableExample"
jsId
=
"tableStore"
></
div
>
<
table
id
=
"tableExample"
style
=
"display: none;"
>
<
thead
>
<
tr
><
th
>
value
</
th
></
tr
>
</
thead
>
<
tbody
>
<
tr
><
td
>
6.3
</
td
></
tr
>
<
tr
><
td
>
1.8
</
td
></
tr
>
<
tr
><
td
>
3
</
td
></
tr
>
<
tr
><
td
>
0.5
</
td
></
tr
>
<
tr
><
td
>
4.4
</
td
></
tr
>
<
tr
><
td
>
2.7
</
td
></
tr
>
<
tr
><
td
>
2
</
td
></
tr
>
</
tbody
>
</
table
>
<
table
border
=
"1"
>
<
tr
>
<
td
>
<
div
dojoType
=
"dojox.charting.widget.Chart2D"
style
=
"width: 300px; height: 300px;"
>
<
div
class
=
"axis"
name
=
"x"
font
=
"italic normal normal 8pt Tahoma"
></
div
>
<
div
class
=
"axis"
name
=
"y"
vertical
=
"true"
fixUpper
=
"major"
includeZero
=
"true"
font
=
"italic normal normal 8pt Tahoma"
></
div
>
<
div
class
=
"plot"
name
=
"default"
type
=
"Areas"
></
div
>
<
div
class
=
"plot"
name
=
"grid"
type
=
"Grid"
></
div
>
<
div
class
=
"series"
name
=
"Series A"
data
=
"1, 2, 0.5, 1.5, 1, 2.8, 0.4"
></
div
>
<
div
class
=
"series"
name
=
"Series B"
array
=
"seriesB"
></
div
>
<
div
class
=
"series"
name
=
"Series C"
store
=
"tableStore"
valueFn
=
"Number(x)"
></
div
>
</
div
>
</
td
>
<
td
>
<
div
dojoType
=
"dojox.charting.widget.Chart2D"
theme
=
"dojox.charting.themes.PlotKit.orange"
fill
=
"'lightgrey'"
style
=
"width: 300px; height: 300px;"
>
<
div
class
=
"axis"
name
=
"x"
font
=
"italic normal bold 10pt Tahoma"
></
div
>
<
div
class
=
"axis"
name
=
"y"
vertical
=
"true"
fixUpper
=
"major"
includeZero
=
"true"
font
=
"italic normal bold 10pt Tahoma"
></
div
>
<
div
class
=
"plot"
name
=
"default"
type
=
"Areas"
></
div
>
<
div
class
=
"plot"
name
=
"grid"
type
=
"Grid"
></
div
>
<
div
class
=
"series"
name
=
"Series A"
data
=
"1, 2, 0.5, 1.5, 1, 2.8, 0.4"
></
div
>
<
div
class
=
"series"
name
=
"Series B"
array
=
"seriesB"
></
div
>
<
div
class
=
"series"
name
=
"Series C"
store
=
"tableStore"
valueFn
=
"Number(x)"
stroke
=
"'blue'"
fill
=
"'green'"
></
div
>
</
div
>
</
td
>
</
tr
>
<
tr
>
<
td
>
<
div
dojoType
=
"dojox.charting.widget.Chart2D"
theme
=
"dojox.charting.themes.PlotKit.blue"
style
=
"width: 300px; height: 300px;"
>
<
div
class
=
"plot"
name
=
"default"
type
=
"Pie"
radius
=
"100"
fontColor
=
"white"
></
div
>
<
div
class
=
"series"
name
=
"Series B"
array
=
"seriesB"
></
div
>
</
div
>
</
td
>
<
td
>
<
div
dojoType
=
"dojox.charting.widget.Chart2D"
theme
=
"dojox.charting.themes.PlotKit.green"
style
=
"width: 300px; height: 300px;"
>
<
div
class
=
"plot"
name
=
"default"
type
=
"Pie"
radius
=
"100"
fontColor
=
"black"
labelOffset
=
"-20"
></
div
>
<
div
class
=
"series"
name
=
"Series C"
store
=
"tableStore"
valueFn
=
"Number(x)"
></
div
>
</
div
>
</
td
>
</
tr
>
</
table
>
<
p
>
That's all Folks!
</
p
>
</
body
>
</
html
>
File Metadata
Details
Attached
Mime Type
text/html
Expires
Sat, Apr 26, 20:49 (2 d, 17 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27340
Default Alt Text
test_widget2d.html (3 KB)
Attached To
rZEDHG ZedLegacy
Event Timeline
Log In to Comment