Skip to content

Tag Archives: dojo

Dojo 1.1 Charting

Dojo has a charting module capable of rendering a few different types of graphs. Here’s an example rendering of one sine and cosine period in SVG.

The code is straightforward:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Dojo 1.1 Charting Example</title>
<script type="text/javascript" src="/scripts/dojo/dojo.js"></script>
 
<script type="text/javascript">
[...]