Вход Регистрация
Файл: silawar.ru/js/plugins/morris/morris-data.js
Строк: 61
<?php
// Morris.js Charts sample data for SB Admin template

$(function() {
//
//    // Area Chart
//    Morris.Area({
//        element: 'morris-area-chart',
//        data: [{
//            period: '2010 Q1',
//            iphone: 2666,
//            ipad: null,
//            itouch: 2647
//        }, {
//            period: '2010 Q2',
//            iphone: 2778,
//            ipad: 2294,
//            itouch: 2441
//        }, {
//            period: '2010 Q3',
//            iphone: 4912,
//            ipad: 1969,
//            itouch: 2501
//        }, {
//            period: '2010 Q4',
//            iphone: 3767,
//            ipad: 3597,
//            itouch: 5689
//        }, {
//            period: '2011 Q1',
//            iphone: 6810,
//            ipad: 1914,
//            itouch: 2293
//        }, {
//            period: '2011 Q2',
//            iphone: 5670,
//            ipad: 4293,
//            itouch: 1881
//        }, {
//            period: '2011 Q3',
//            iphone: 4820,
//            ipad: 3795,
//            itouch: 1588
//        }, {
//            period: '2011 Q4',
//            iphone: 15073,
//            ipad: 5967,
//            itouch: 5175
//        }, {
//            period: '2012 Q1',
//            iphone: 10687,
//            ipad: 4460,
//            itouch: 2028
//        }, {
//            period: '2012 Q2',
//            iphone: 8432,
//            ipad: 5713,
//            itouch: 1791
//        }],
//        xkey: 'period',
//        ykeys: ['iphone', 'ipad', 'itouch'],
//        labels: ['iPhone', 'iPad', 'iPod Touch'],
//        pointSize: 2,
//        hideHover: 'auto',
//        resize: true
//    });

    // Donut Chart
    
Morris.Donut({
        
element'morris-donut-chart',
        
data: [{
            
label"Download Sales",
            
value12
        
}, {
            
label"In-Store Sales",
            
value30
        
}, {
            
label"Mail-Order Sales",
            
value20
        
}],
        
resizetrue
    
});

    
// Line Chart
    
Morris.Line({
        
// ID of the element in which to draw the chart.
        
element'morris-line-chart',
        
// Chart data records -- each entry in this array corresponds to a point on
        // the chart.
        
data: [{
            
d'2012-10-01',
            
visits802
        
}, {
            
d'2012-10-02',
            
visits783
        
}, {
            
d'2012-10-03',
            
visits820
        
}, {
            
d'2012-10-04',
            
visits839
        
}, {
            
d'2012-10-05',
            
visits792
        
}, {
            
d'2012-10-06',
            
visits859
        
}, {
            
d'2012-10-07',
            
visits790
        
}, {
            
d'2012-10-08',
            
visits1680
        
}, {
            
d'2012-10-09',
            
visits1592
        
}, {
            
d'2012-10-10',
            
visits1420
        
}, {
            
d'2012-10-11',
            
visits882
        
}, {
            
d'2012-10-12',
            
visits889
        
}, {
            
d'2012-10-13',
            
visits819
        
}, {
            
d'2012-10-14',
            
visits849
        
}, {
            
d'2012-10-15',
            
visits870
        
}, {
            
d'2012-10-16',
            
visits1063
        
}, {
            
d'2012-10-17',
            
visits1192
        
}, {
            
d'2012-10-18',
            
visits1224
        
}, {
            
d'2012-10-19',
            
visits1329
        
}, {
            
d'2012-10-20',
            
visits1329
        
}, {
            
d'2012-10-21',
            
visits1239
        
}, {
            
d'2012-10-22',
            
visits1190
        
}, {
            
d'2012-10-23',
            
visits1312
        
}, {
            
d'2012-10-24',
            
visits1293
        
}, {
            
d'2012-10-25',
            
visits1283
        
}, {
            
d'2012-10-26',
            
visits1248
        
}, {
            
d'2012-10-27',
            
visits1323
        
}, {
            
d'2012-10-28',
            
visits1390
        
}, {
            
d'2012-10-29',
            
visits1420
        
}, {
            
d'2012-10-30',
            
visits1529
        
}, {
            
d'2012-10-31',
            
visits1892
        
}, ],
        
// The name of the data record attribute that contains x-visitss.
        
xkey'd',
        
// A list of names of data record attributes that contain y-visitss.
        
ykeys: ['visits'],
        
// Labels for the ykeys -- will be displayed when you hover over the
        // chart.
        
labels: ['Visits'],
        
// Disables line smoothing
        
smoothfalse,
        
resizetrue
    
});

    
// Bar Chart
    
Morris.Bar({
        
element'morris-bar-chart',
        
data: [{
            
device'iPhone',
            
geekbench136
        
}, {
            
device'iPhone 3G',
            
geekbench137
        
}, {
            
device'iPhone 3GS',
            
geekbench275
        
}, {
            
device'iPhone 4',
            
geekbench380
        
}, {
            
device'iPhone 4S',
            
geekbench655
        
}, {
            
device'iPhone 5',
            
geekbench1571
        
}],
        
xkey'device',
        
ykeys: ['geekbench'],
        
labels: ['Geekbench'],
        
barRatio0.4,
        
xLabelAngle35,
        
hideHover'auto',
        
resizetrue
    
});


});
?>
Онлайн: 1
Реклама