dojo Charts: Advanced 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”, markers: true, tension:3, shadows: {dx: 2, dy: 2, dw: 2}});
    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

5 Responses

  1. Great!
    A perfekt hello-chart example
    and its even working 🙂

  2. Unquestionably consider that which you stated. Your favourite justification appeared to be on the internet the simplest thing to consider of. I say to you, I definitely get irked at the same time as other folks consider worries that they plainly do not recognise about. You controlled to hit the nail upon the top and outlined out the entire thing with no need side effect , folks can take a signal. Will probably be back to get more. Thanks

  3. Great items from you, man. I’ve take note your stuff previous to and you’re just too fantastic. I really like what you’ve bought here, really like what you’re stating and the best way wherein you say it. You make it enjoyable and you continue to take care of to keep it wise. I cant wait to learn far more from you. This is really a tremendous site.

  4. F*ckin? amazing issues here. I?m very glad to look your post. Thanks a lot and i’m taking a look forward to contact you. Will you please drop me a mail?

  5. Great beat ! I would like to apprentice at the same time as you amend your web site, how could i subscribe for a weblog web site? The account helped me a acceptable deal. I had been tiny bit familiar of this your broadcast provided brilliant clear idea

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: