Sha256: efd235c1889d8a2dd5ccc5eeb4f6cb0708d7af749929b6600e300d0c4ac5c324

Contents?: true

Size: 1.72 KB

Versions: 39

Compression:

Stored size: 1.72 KB

Contents

/**
* Theme: Ubold Admin Template
* Author: Coderthemes
* Dashboard 2
*/

!function($) {
    "use strict";

    var Dashboard2 = function() {
    	this.$realData = []
    };
    
     //creates area chart with dotted
    Dashboard2.prototype.createAreaChartDotted = function(element, pointSize, lineWidth, data, xkey, ykeys, labels, Pfillcolor, Pstockcolor, lineColors) {
        Morris.Area({
            element: element,
            pointSize: 0,
            lineWidth: 0,
            data: data,
            xkey: xkey,
            ykeys: ykeys,
            labels: labels,
            hideHover: 'auto',
            pointFillColors: Pfillcolor,
            pointStrokeColors: Pstockcolor,
            resize: true,
            gridLineColor: '#eef0f2',
            lineColors: lineColors
        });

   },
    Dashboard2.prototype.init = function() {

         //creating area chart
        var $areaDotData = [
                { y: '2009', a: 10, b: 20, c:30 },
                { y: '2010', a: 75,  b: 65, c:30 },
                { y: '2011', a: 50,  b: 40, c:30 },
                { y: '2012', a: 75,  b: 65, c:30 },
                { y: '2013', a: 50,  b: 40, c:30 },
                { y: '2014', a: 75,  b: 65, c:30 },
                { y: '2015', a: 90, b: 60, c:30 }
            ];
        this.createAreaChartDotted('morris-area-with-dotted', 0, 0, $areaDotData, 'y', ['a', 'b', 'c'], ['Desktops ', 'Tablets ', 'Mobiles '],['#ffffff'],['#999999'], ['#36404a', '$brand-primary','#bbbbbb']);

    },
    //init
    $.Dashboard2 = new Dashboard2, $.Dashboard2.Constructor = Dashboard2
}(window.jQuery),

//initializing 
function($) {
    "use strict";
    $.Dashboard2.init();
}(window.jQuery);

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
wbase-0.3.20 lib/vendor/admin/jquery.dashboard_ecommerce.js
wbase-0.3.19 lib/vendor/admin/jquery.dashboard_ecommerce.js
wbase-0.3.18 lib/vendor/admin/jquery.dashboard_ecommerce.js
wbase-0.3.17 lib/vendor/admin/jquery.dashboard_ecommerce.js
wbase-0.3.16 lib/vendor/admin/jquery.dashboard_ecommerce.js
wbase-0.3.15 lib/vendor/admin/jquery.dashboard_ecommerce.js
wbase-0.3.14 lib/vendor/admin/jquery.dashboard_ecommerce.js
wbase-0.3.13 lib/vendor/admin/jquery.dashboard_ecommerce.js
wbase-0.3.12 lib/vendor/admin/jquery.dashboard_ecommerce.js
wbase-0.3.11 lib/vendor/admin/jquery.dashboard_ecommerce.js
wbase-0.3.10 lib/vendor/admin/jquery.dashboard_ecommerce.js
wbase-0.3.9 lib/vendor/admin/jquery.dashboard_ecommerce.js
wbase-0.3.8 lib/vendor/admin/jquery.dashboard_ecommerce.js
wbase-0.3.7 lib/vendor/admin/jquery.dashboard_ecommerce.js
wbase-0.3.6 lib/vendor/admin/jquery.dashboard_ecommerce.js
wbase-0.3.5 lib/vendor/admin/jquery.dashboard_ecommerce.js
wbase-0.3.4 lib/vendor/admin/jquery.dashboard_ecommerce.js
wbase-0.3.3 lib/vendor/admin/jquery.dashboard_ecommerce.js
wbase-0.3.2 lib/vendor/admin/jquery.dashboard_ecommerce.js
wbase-0.3.1 lib/vendor/admin/jquery.dashboard_ecommerce.js