composer update
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
/* jshint undef: true, unused: true */
|
||||
/* globals lava, google */
|
||||
|
||||
(function(){
|
||||
"use strict";
|
||||
|
||||
var $chart = lava.createChart('<chartType>', '<chartLabel>');
|
||||
|
||||
$chart.init = function() {
|
||||
$chart.package = '<chartPackage>';
|
||||
$chart.setElement('<elemId>');
|
||||
$chart.setPngOutput(<pngOutput>);
|
||||
|
||||
$chart.configure = function () {
|
||||
$chart.render = function (data) {
|
||||
$chart.setData(<chartData>);
|
||||
|
||||
$chart.options = <chartOptions>;
|
||||
|
||||
$chart.chart = new <chartClass>($chart.element);
|
||||
|
||||
<formats>
|
||||
<events>
|
||||
|
||||
$chart.chart.draw($chart.data, $chart.options);
|
||||
|
||||
if ($chart.pngOutput === true) {
|
||||
$chart.drawPng();
|
||||
}
|
||||
|
||||
$chart.promises.rendered.resolve();
|
||||
return $chart.promises.rendered.promise;
|
||||
};
|
||||
|
||||
$chart.promises.configure.resolve();
|
||||
return $chart.promises.configure.promise;
|
||||
};
|
||||
|
||||
lava.emit('ready', $chart);
|
||||
};
|
||||
|
||||
lava.store($chart);
|
||||
})();
|
||||
@@ -0,0 +1,34 @@
|
||||
/* jshint undef: true, unused: true */
|
||||
/* globals lava, google */
|
||||
|
||||
(function(){
|
||||
"use strict";
|
||||
|
||||
var $dash = lava.createDashboard('<label>');
|
||||
|
||||
$dash.init = function () {
|
||||
$dash.setElement('<elemId>');
|
||||
$dash.packages = <packages>;
|
||||
|
||||
$dash.configure = function () {
|
||||
$dash.render = function (data) {
|
||||
$dash.dashboard = new <class>($dash.element);
|
||||
|
||||
$dash.setData(<chartData>);
|
||||
|
||||
<bindings>
|
||||
|
||||
$dash.dashboard.draw($dash.data);
|
||||
|
||||
lava.emit('rendered', $dash);
|
||||
};
|
||||
|
||||
$dash.deferred.resolve();
|
||||
return $dash.deferred.promise;
|
||||
};
|
||||
|
||||
lava.emit('ready', $dash);
|
||||
};
|
||||
|
||||
lava.store($dash);
|
||||
})();
|
||||
Reference in New Issue
Block a user