提交 36489f44 编写于 作者: T TornjV

ChartTracer start

上级 a58a553c
......@@ -121,6 +121,9 @@
<script src="js/module/weighted_directed_graph.js"></script>
<script src="js/module/weighted_undirected_graph.js"></script>
<script src="js/script.js"></script>
<script src="js/Chart-2.1.3.min.js"></script>
<script src="js/module/chart.js"></script>
<script>
(function (i, s, o, g, r, a, m) {
i['GoogleAnalyticsObject'] = r;
......
此差异已折叠。
function ChartTracer() {
if (Tracer.apply(this, arguments)) {
ChartTracer.prototype.init.call(this, arguments);
return true;
}
return false;
}
ChartTracer.prototype = $.extend(true, Object.create(Tracer.prototype), {
constructor: ChartTracer,
init: function () {
var tracer = this;
this.$wrapper = this.capsule.$wrapper = $('<canvas id="chart">');
this.$container.append(this.$wrapper);
var args = Array.prototype.slice.call(arguments).shift();
this.c = this.capsule.s = new Chart(this.$wrapper, args[1]);
this.chart = this.capsule.chart = this.c.chart;
}
});
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册