dojo Charts: Line Chart

 

<html>

<head runat=”server”>
<meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″>
<title>Untitled 1</title>
<script type=”text/javascript” src= “../js/dojo/dojo/dojo.js” djConfig=”isDebug: true”></script>
<script type=”text/javascript”>
dojo.require(“dojox.charting.Chart2D”);
makeCharts = function(){
    var chart1 = new dojox.charting.Chart2D(“simplechart”);
    chart1.addPlot(“default”, {type: “Lines”});
    chart1.addAxis(“x”);
    chart1.addAxis(“y”, {vertical: true});
    chart1.addSeries(“Series 1”, [1, 2, 2, 3, 4, 5, 5, 7]);
    chart1.render();
};
dojo.addOnLoad(makeCharts);
</script>
</head>
<body>
<div id=”simplechart” style=”width: 250px; height: 150px;”></div>
</body>
</html>

 

Output:

 

image

Advertisements

One Response

  1. Whether it be secret recipes or just a secret technique you
    use whenever you bake to make a pie crispy, you can write about practically anything as long
    as they are well written and informative and make money online.
    Be sure the receiver of your donated words is deserving of your gift.
    Our freelance writers have no trouble with their writing
    jobs as we do have a constant flow of orders on various topics.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: