Performance DataTargetAchievedBy ShieldUI
Visits
175,773
Impressions
975,112
Comments
124,554
Downloads
11,745
This template demonstrates a layout following the Google Material Design Guidelins.
At the top is rendered a spline area chart. Below the chart are rendered a number of vital stats.
The sample uses the ShieldUI jQuery Chart plugin for data visualization purposes.
To see more information on the chart component, please refer to the following article.


<style>
   
    .bigicon {
        font-size:57px;
        color:white;
    }

    .panel{
        border-radius:0;        
    }

    .stats-item{        
        padding:10px;     
        min-height:77px;   

    }

    .header-item{
        font-size:17px;
        color:white;
    }

    .data-item {
        font-size: 19px;
        color: white;
    }
</style>

<div class="container">
    <br />

    <div class="row">
        <div class="col-sm-12 col-md-12 col-lg-12">
            <div class="panel panel-default">
                <div id="chart1">
                </div>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-sm-6 col-md-3 col-lg-3">            
                <div class="panel text-center">
                    <div class="col-md-6 stats-item" style="background-color: #00AABF">
                        <i style="background-color: #00AABF" class="fa fa-line-chart bigicon"></i>
                    </div>
                    <div style="background-color: #00BCD4" class="col-md-6 stats-item">
                        <div class="header-item">Visits</div>
                        <div class="data-item">175,773</div>
                    </div>
                </div>            
        </div>
        <div class="col-sm-6 col-md-3 col-lg-3">
            <div class="panel text-center">
                <div class="col-md-6 stats-item" style="background-color: #7DB043">
                    <i style="background-color: #7DB043" class="fa fa-eye bigicon"></i>
                </div>
                <div style="background-color: #8BC34A" class="col-md-6 stats-item">
                    <div class="header-item">Impressions</div>
                    <div class="data-item">975,112</div>
                </div>
            </div>
        </div>
        <div class="col-sm-6 col-md-3 col-lg-3">
            <div class="panel text-center">
                <div class="col-md-6 stats-item" style="background-color: #E68900">
                    <i style="background-color: #E68900" class="fa fa-comment-o bigicon"></i>
                </div>
                <div style="background-color: #FF9800" class="col-md-6 stats-item">
                    <div class="header-item">Comments</div>
                    <div class="data-item">124,554</div>
                </div>
            </div>
        </div>
        <div class="col-sm-6 col-md-3 col-lg-3">
            <div class="panel text-center">
                <div class="col-md-6 stats-item" style="background-color: #57717D">
                    <i style="background-color: #57717D" class="fa fa-cloud-download bigicon"></i>
                </div>
                <div style="background-color: #607D8B" class="col-md-6 stats-item">
                    <div class="header-item">Downloads</div>
                    <div class="data-item">11,745</div>
                </div>
            </div>
        </div>
    </div>
</div>

<!-- you need to include the shieldui css and js assets in order for the charts to work -->
<link rel="stylesheet" type="text/css" href="http://www.shieldui.com/shared/components/latest/css/light/all.min.css" />
<script type="text/javascript" src="http://www.shieldui.com/shared/components/latest/js/shieldui-all.min.js"></script>

<script type="text/javascript">
    jQuery(function ($) {
        // a function to generate some random data
        function getRandomArray(length, min, max) {
            var array = [];
            for (var i = 0; i < length; i++) {
                array.push(Math.floor(Math.random() * (max - min + 1)) + min);
            }
            return array;
        }
        // init the main chart
        $("#chart1").shieldChart({
            theme: "light",
            exportOptions: {
                image: false,
                print: false
            },
            primaryHeader: {
                text: "Performance Data"
            },
            axisX: {
                drawColor: 'white',
                ticksColor: 'white',
                axisTickText: {
                    enabled: false
                }
            },
            axisY: {
                drawColor: 'white',
                ticksColor: 'white',                
                plotStripWidth: 0,
                axisTickText: {
                    enabled: false
                }
            },
            tooltipSettings: {
                axisMarkers: {
                    enabled: true,
                    mode: 'x',
                    width: 2,
                    zIndex: 3,
                    drawColor: "grey"
                }
            },
            dataSeries: [
                {
                    seriesType: 'splinearea',
                    collectionAlias: 'Target',
                    data: getRandomArray(20, 30, 100),
                    color: '#F0DD2F'
                },
                {
                    seriesType: 'splinearea',
                    collectionAlias: 'Achieved',
                    data: getRandomArray(20, 15, 50),
                    color: '#E4E4E4'
                }
            ]
        });
    });
</script>
Was this template useful?