summaryrefslogtreecommitdiff
path: root/query/chart_topology_display.js
diff options
context:
space:
mode:
Diffstat (limited to 'query/chart_topology_display.js')
-rw-r--r--query/chart_topology_display.js19
1 files changed, 19 insertions, 0 deletions
diff --git a/query/chart_topology_display.js b/query/chart_topology_display.js
new file mode 100644
index 0000000..a07e053
--- /dev/null
+++ b/query/chart_topology_display.js
@@ -0,0 +1,19 @@
+function GrasChartTopologyDisplay(args, panel)
+{
+ //input checking
+
+ //settings
+ this.div = $('<div />');
+ $(panel).append(this.div);
+ this.title = "Topology Display";
+
+ //fetch the topology image given the blocks
+ var img = new Image();
+ img.src = "/topology.dot.png?" + jQuery.param({blocks:args.block_ids}, true /*needed to parse data*/);
+ this.div.append($(img));
+}
+
+GrasChartTopologyDisplay.prototype.update = function(point)
+{
+ var self = this;
+}