function widgetFlotChart() {


    /**
     * Flot chart data and options
     */
    var d1 = [[1262304000000, 6], [1264982400000, 3057], [1267401600000, 20434], [1270080000000, 31982], [1272672000000, 26602], [1275350400000, 27826], [1277942400000, 24302], [1280620800000, 24237], [1283299200000, 21004], [1285891200000, 12144], [1288569600000, 10577], [1291161600000, 10295]];
    var d2 = [[1262304000000, 5], [1264982400000, 200], [1267401600000, 1605], [1270080000000, 6129], [1272672000000, 11643], [1275350400000, 19055], [1277942400000, 30062], [1280620800000, 39197], [1283299200000, 37000], [1285891200000, 27000], [1288569600000, 21000], [1291161600000, 17000]];

    var flotChartData1 = [
        { label: "Data 1", data: d1, color: '#17a084'},
        { label: "Data 2", data: d2, color: '#127e68' }
    ];

    var flotChartOptions1 = {
        xaxis: {
            tickDecimals: 0
        },
        series: {
            lines: {
                show: true,
                fill: true,
                fillColor: {
                    colors: [{
                        opacity: 1
                    }, {
                        opacity: 1
                    }]
                }
            },
            points: {
                width: 0.1,
                show: false
            }
        },
        grid: {
            show: false,
            borderWidth: 0
        },
        legend: {
            show: false
        }
    };

    var flotChartData2 = [
        { label: "Data 1", data: d1, color: '#19a0a1'}
    ];

    var flotChartOptions2 = {
        xaxis: {
            tickDecimals: 0
        },
        series: {
            lines: {
                show: true,
                fill: true,
                fillColor: {
                    colors: [{
                        opacity: 1
                    }, {
                        opacity: 1
                    }]
                }
            },
            points: {
                width: 0.1,
                show: false
            }
        },
        grid: {
            show: false,
            borderWidth: 0
        },
        legend: {
            show: false
        }
    };

    var flotChartData3 = [
        { label: "Data 1", data: d1, color: '#fbbe7b'},
        { label: "Data 2", data: d2, color: '#f8ac59' }
    ];

    var flotChartOptions3 = {
        xaxis: {
            tickDecimals: 0
        },
        series: {
            lines: {
                show: true,
                fill: true,
                fillColor: {
                    colors: [{
                        opacity: 1
                    }, {
                        opacity: 1
                    }]
                }
            },
            points: {
                width: 0.1,
                show: false
            }
        },
        grid: {
            show: false,
            borderWidth: 0
        },
        legend: {
            show: false
        }
    };

    /**
     * Definition of variables
     * Flot chart
     */

    this.flotChartData1 = flotChartData1;
    this.flotChartOptions1 = flotChartOptions1;
    this.flotChartData2 = flotChartData2;
    this.flotChartOptions2 = flotChartOptions2;
    this.flotChartData3 = flotChartData3;
    this.flotChartOptions3 = flotChartOptions3;


}
/**
 * widgetFlotChart - Data for Flot chart
 * used in Widget view
 */
Data for Flot chart
used in Widget view
Data for Flot chart used in Widget view
function widgetFlotChart() {
    var d1 = [[1262304000000, 6], [1264982400000, 3057], [1267401600000, 20434], [1270080000000, 31982], [1272672000000, 26602], [1275350400000, 27826], [1277942400000, 24302], [1280620800000, 24237], [1283299200000, 21004], [1285891200000, 12144], [1288569600000, 10577], [1291161600000, 10295]];
    var d2 = [[1262304000000, 5], [1264982400000, 200], [1267401600000, 1605], [1270080000000, 6129], [1272672000000, 11643], [1275350400000, 19055], [1277942400000, 30062], [1280620800000, 39197], [1283299200000, 37000], [1285891200000, 27000], [1288569600000, 21000], [1291161600000, 17000]];
    var flotChartData1 = [
        { label: "Data 1", data: d1, color: '#17a084'},
        { label: "Data 2", data: d2, color: '#127e68' }
    ];
    var flotChartOptions1 = {
        xaxis: {
            tickDecimals: 0
        },
        series: {
            lines: {
                show: true,
                fill: true,
                fillColor: {
                    colors: [{
                        opacity: 1
                    }, {
                        opacity: 1
                    }]
                }
            },
            points: {
                width: 0.1,
                show: false
            }
        },
        grid: {
            show: false,
            borderWidth: 0
        },
        legend: {
            show: false
        }
    };
    var flotChartData2 = [
        { label: "Data 1", data: d1, color: '#19a0a1'}
    ];
    var flotChartOptions2 = {
        xaxis: {
            tickDecimals: 0
        },
        series: {
            lines: {
                show: true,
                fill: true,
                fillColor: {
                    colors: [{
                        opacity: 1
                    }, {
                        opacity: 1
                    }]
                }
            },
            points: {
                width: 0.1,
                show: false
            }
        },
        grid: {
            show: false,
            borderWidth: 0
        },
        legend: {
            show: false
        }
    };
    var flotChartData3 = [
        { label: "Data 1", data: d1, color: '#fbbe7b'},
        { label: "Data 2", data: d2, color: '#f8ac59' }
    ];
    var flotChartOptions3 = {
        xaxis: {
            tickDecimals: 0
        },
        series: {
            lines: {
                show: true,
                fill: true,
                fillColor: {
                    colors: [{
                        opacity: 1
                    }, {
                        opacity: 1
                    }]
                }
            },
            points: {
                width: 0.1,
                show: false
            }
        },
        grid: {
            show: false,
            borderWidth: 0
        },
        legend: {
            show: false
        }
    };
    this.flotChartData1 = flotChartData1;
    this.flotChartOptions1 = flotChartOptions1;
    this.flotChartData2 = flotChartData2;
    this.flotChartOptions2 = flotChartOptions2;
    this.flotChartData3 = flotChartData3;
    this.flotChartOptions3 = flotChartOptions3;
}
function widgetFlotChart ( ) { var d1 = [ [ 1262304000000 , 6 ] , [ 1264982400000 , 3057 ] , [ 1267401600000 , 20434 ] , [ 1270080000000 , 31982 ] , [ 1272672000000 , 26602 ] , [ 1275350400000 , 27826 ] , [ 1277942400000 , 24302 ] , [ 1280620800000 , 24237 ] , [ 1283299200000 , 21004 ] , [ 1285891200000 , 12144 ] , [ 1288569600000 , 10577 ] , [ 1291161600000 , 10295 ] ] ; var d2 = [ [ 1262304000000 , 5 ] , [ 1264982400000 , 200 ] , [ 1267401600000 , 1605 ] , [ 1270080000000 , 6129 ] , [ 1272672000000 , 11643 ] , [ 1275350400000 , 19055 ] , [ 1277942400000 , 30062 ] , [ 1280620800000 , 39197 ] , [ 1283299200000 , 37000 ] , [ 1285891200000 , 27000 ] , [ 1288569600000 , 21000 ] , [ 1291161600000 , 17000 ] ] ; var flotChartData1 = [ { label : "Data 1" , data : d1 , color : '#17a084' } , { label : "Data 2" , data : d2 , color : '#127e68' } ] ; var flotChartOptions1 = { xaxis : { tickDecimals : 0 } , series : { lines : { show : true , fill : true , fillColor : { colors : [ { opacity : 1 } , { opacity : 1 } ] } } , points : { width : 0.1 , show : false } } , grid : { show : false , borderWidth : 0 } , legend : { show : false } } ; var flotChartData2 = [ { label : "Data 1" , data : d1 , color : '#19a0a1' } ] ; var flotChartOptions2 = { xaxis : { tickDecimals : 0 } , series : { lines : { show : true , fill : true , fillColor : { colors : [ { opacity : 1 } , { opacity : 1 } ] } } , points : { width : 0.1 , show : false } } , grid : { show : false , borderWidth : 0 } , legend : { show : false } } ; var flotChartData3 = [ { label : "Data 1" , data : d1 , color : '#fbbe7b' } , { label : "Data 2" , data : d2 , color : '#f8ac59' } ] ; var flotChartOptions3 = { xaxis : { tickDecimals : 0 } , series : { lines : { show : true , fill : true , fillColor : { colors : [ { opacity : 1 } , { opacity : 1 } ] } } , points : { width : 0.1 , show : false } } , grid : { show : false , borderWidth : 0 } , legend : { show : false } } ; this . flotChartData1 = flotChartData1 ; this . flotChartOptions1 = flotChartOptions1 ; this . flotChartData2 = flotChartData2 ; this . flotChartOptions2 = flotChartOptions2 ; this . flotChartData3 = flotChartData3 ; this . flotChartOptions3 = flotChartOptions3 ; }
widgetFlotChart - Data for Flot chart
 used in Widget view
widgetFlotChart - Data for Flot chart used in Widget view
/**
     * Flot chart data and options
     */ /**
     * Definition of variables
     * Flot chart
     */