Last change
on this file since 283 was
283,
checked in by tjcschipper, 13 years ago
|
Cartis Mockup werkt!
W
I
N
N
I
N
G
|
File size:
586 bytes
|
Rev | Line | |
---|
[283] | 1 | $(function() { |
---|
| 2 | |
---|
| 3 | mockup.api.drawGraph = function(input) { |
---|
| 4 | var graph = new Graph("graphsContainer"); |
---|
| 5 | graph.init(input[0], input[1], input[2], input[3]); |
---|
| 6 | |
---|
| 7 | mockup.api.graphs.graphObjects.push(graph); |
---|
| 8 | } |
---|
| 9 | |
---|
| 10 | mockup.api.showDashboard = function() { |
---|
| 11 | for (var n = 0; n < mockup.api.graphs.dashboard.length; n++) { |
---|
| 12 | //Get settings from list |
---|
| 13 | var input = mockup.api.graphs.dashboard[n]; |
---|
| 14 | // Draw a graph. |
---|
| 15 | mockup.api.drawGraph(input); |
---|
| 16 | } |
---|
| 17 | } |
---|
| 18 | |
---|
| 19 | mockup.api.showDashboard(); |
---|
| 20 | |
---|
| 21 | }); |
---|
Note: See
TracBrowser
for help on using the repository browser.