$(document).ready(function() {

var dom = document.getElementById("pageview-chart");
var Chart = echarts.init(dom);
var app = {};
option = null;
option = {
    tooltip : {
        trigger: 'axis'
    },
    legend: {
                data:['Sales']
            },
    calculable : true,
    xAxis : [
        {
            type : 'category',
            boundaryGap : false,
            data : ['weekly','Saturday','Sunday','Monday','Tuesday','Wednesday','Thursday','Friday']
        }
    ],
    yAxis : [
        {
            type : 'value'
        }
    ],
    series : [
        {
            name:'Exhort Item 1',
            type:'line',
            smooth:true,
            itemStyle: {normal: {areaStyle: {type: 'default'}}},
             data:[800, 600, 797, 500, 700, 500, 790,600,700,800]
        },
        {
            name:'Exhort Item 2',
            type:'line',
            smooth:true,
            itemStyle: {normal: {areaStyle: {type: 'default'}}},
             data:[600, 400, 300, 500, 300, 300, 500,300]
        }
    ],

    legend: {
        data:['Exhort Item 1','Exhort Item 2']
    },
    color: [ 
        '#e0f7e4', '#e0e7e3'
    ],

};

;
if (option && typeof option === "object") {
    Chart.setOption(option, true);
}

});