Loading...
http://ibmwebsphereportalonlinetraining.blogspot.com/2015/08/dojo-charts.html
Dojo comes with an amazing charting
library, in the form of dojox.charting. You can create different types of
versions 2D chart, 3D Chart, Pie, Animated Chart.
Here
is a sample html code for Columns chart by using dojo:
<html>
<head>
<script
src="http://ajax.googleapis.com/ajax/libs/dojo/1.6/dojo/dojo.xd.js"
djConfig="parseOnLoad: true">
</script>
<script
type="text/javascript">
dojo.require("dojox.charting.Chart2D");
dojo.addOnLoad(function() {
var c = new
dojox.charting.Chart2D("chartOne",{
title: "Revenue per
year",
titlePos:
"bottom",
titleGap: 5,
titleFont: "normal
normal normal 15pt Arial",
titleFontColor:
"orange"
});
c.addPlot("default",{type: "Columns", gap: 5,
minBarSize: 3, maxBarSize: 20})
.addAxis("x", {
fixLower:
"major",
fixUpper:
"minor",
labels: [{value: 1, text:
"Item1"}, {value: 2, text: "Item2"},{value: 3, text:
"Item3"}]})
.addAxis("y", {
title: "Revenue ($ Million)",
vertical: true,
fixLower:
"major",
fixUpper:
"major",
includeZero: true})
.addSeries("Series
A",
[{y: 4, color:
"red"},{y: 2, color: "green"},{y: 6, color:
"blue"}]);
c.render();
});
</script>
</head>
<body>
<div id="chartOne"
style="width: 400px; height: 240px; margin: 30px auto 0px auto;">
</div>
</body>
</html>
Training
2081228587911875042
Post a Comment
Home
item
Blog Archive
Popular Posts
-
Adding New Language in Portal If you come to see that the date is not displaying as usual in portal, then you should know that the loc...
-
we can create multiple schedulers within a single server, cluster, node or cell. Each configured scheduler is an independent task schedul...
-
IBM WebSphere Portal Express provides a scripting platform that increases the potential for automated solution deployment and administrati...
-
1. In the portal WP Configuration Service(REP), set the custom property friendly.redirect.enabled to the value false. 2. In the theme,...
-
In WebSphere Portal, while you are creating a new page under content root, it will be shown on the quick links navigation. If you don...
-
Installation of IBM WebSphere Portal Here, we will show you the first (1 st ) phase of Installing IBM WebSphere Portal Express. Th...
-
Analysis Technique Bottle Neck Analysis Technique After having a portal at saturation, by taking a Java thread dump (using a kil...
-
How to change the default portal URI /wps/portal after installation ? Set the property WpsContextRoot to the new URI and run ./W...
-
Dojo comes with an amazing charting library, in the form of dojox.charting. You can create different types of versions 2D chart, 3D Chart,...