Sha256: b9ad2788cd9a27263c669b9c17009f87b553f2990b8f7e850e92740eca8a7818
Contents?: true
Size: 797 Bytes
Versions: 3
Compression:
Stored size: 797 Bytes
Contents
(function() { "use strict"; window.Suricate = window.Suricate || {}; Suricate.LineChartWidget = function(id, container, configuration, application) { Suricate.Widget.call(this, id, container, configuration, application); this.chart = undefined; }; Suricate.LineChartWidget.prototype = new Suricate.Widget(); Suricate.LineChartWidget.prototype.init = function() { Suricate.Widget.prototype.init.call(this); var chartFactory = this.application.getChartFactory(); var container = this.view.getBody(); this.chart = chartFactory.createLineChart(container, {}); }; /* * Private */ Suricate.LineChartWidget.prototype.setData = function(data) { this.chart.update(data.chart); }; }());
Version data entries
3 entries across 3 versions & 1 rubygems