- test

parent cafc0efb
...@@ -26,6 +26,6 @@ ...@@ -26,6 +26,6 @@
<?php $this->registerJsFile('/js/jquery.form.js', ['position' => yii\web\View::POS_END ]);?> <?php $this->registerJsFile('/js/jquery.form.js', ['position' => yii\web\View::POS_END ]);?>
<?php $this->registerJsFile('/js/connect-form.js', ['position' => yii\web\View::POS_END ]);?> <?php $this->registerJsFile('/js/connect-form.js', ['position' => yii\web\View::POS_END ]);?>
<?php $this->registerJsFile('/js/prism.js', ['position' => yii\web\View::POS_END ]);?> <?php $this->registerJsFile('/js/prism.js', ['position' => yii\web\View::POS_END ]);?>
<?php // $this->registerJsFile('/plugins/fusioncharts-suite-xt/js/fusioncharts.js', ['position' => yii\web\View::POS_END ]);?> <?php $this->registerJsFile('/plugins/fusioncharts-suite-xt/js/fusioncharts.js', ['position' => yii\web\View::POS_END ]);?>
<?php $this->registerJsFile('/js/custom.js', ['position' => yii\web\View::POS_END ]);?> <?php $this->registerJsFile('/js/custom.js', ['position' => yii\web\View::POS_END ]);?>
\ No newline at end of file
...@@ -109,193 +109,199 @@ $(document).ready(function() { ...@@ -109,193 +109,199 @@ $(document).ready(function() {
}); });
}); });
FusionCharts.ready(function () { if($('#chart-container').length > 0)
var revenueChart = new FusionCharts({ {
type: 'doughnut2d', FusionCharts.ready(function () {
renderAt: 'chart-container', var revenueChart = new FusionCharts({
width: '100%', type: 'doughnut2d',
height: '450', renderAt: 'chart-container',
dataFormat: 'json', width: '100%',
dataSource: { height: '450',
dataFormat: 'json',
"chart": { dataSource: {
//"caption": "Expenditures Incurred in Publishing a Book",
"bgcolor": "FFFFFF", "chart": {
"showvalues": "1", //"caption": "Expenditures Incurred in Publishing a Book",
"showpercentvalues": "1", "bgcolor": "FFFFFF",
"showborder": "0", "showvalues": "1",
"showplotborder": "0", "showpercentvalues": "1",
//"showlegend": "1", "showborder": "0",
//"legendborder": "0", "showplotborder": "0",
//"legendposition": "bottom", //"showlegend": "1",
"enablesmartlabels": "1", //"legendborder": "0",
"use3dlighting": "0", //"legendposition": "bottom",
"showshadow": "0", "enablesmartlabels": "1",
//"legendbgcolor": "#CCCCCC", "use3dlighting": "0",
//"legendbgalpha": "20", "showshadow": "0",
//"legendborderalpha": "0", //"legendbgcolor": "#CCCCCC",
//"legendshadow": "0", //"legendbgalpha": "20",
//"legendnumcolumns": "3", //"legendborderalpha": "0",
"labelFont": "RobotoBold", //"legendshadow": "0",
"labelFontColor": "2d323a", //"legendnumcolumns": "3",
"labelFontSize": "14", "labelFont": "RobotoBold",
"labelFontBold": "1", "labelFontColor": "2d323a",
"labelFontSize": "14",
"labelFontBold": "1",
"palettecolors": "#ff3030,#ff7711,#ffc600,#95d900,#97cbdd,#cdc9c4", "palettecolors": "#ff3030,#ff7711,#ffc600,#95d900,#97cbdd,#cdc9c4",
"showHoverEffect":"1", "showHoverEffect":"1",
}, },
"data": [ "data": [
{ {
"label": "Переходы из поисковых сетей", "label": "Переходы из поисковых сетей",
"value": "71.75" "value": "71.75"
}, },
{ {
"label": "Переходы по рекламе", "label": "Переходы по рекламе",
"value": "12.28" "value": "12.28"
}, },
{ {
"label": "Прямые заходы", "label": "Прямые заходы",
"value": "12.19" "value": "12.19"
}, },
{ {
"label": "Другие", "label": "Другие",
"value": "2.26" "value": "2.26"
}, },
{ {
"label": "Другие", "label": "Другие",
"value": "0.76" "value": "0.76"
}, },
{ {
"label": "Другие", "label": "Другие",
"value": "0.76" "value": "0.76"
} }
] ]
} }
}).render(); }).render();
}); });
}
FusionCharts.ready(function () { if($('#chart-container-2').length > 0)
var revenueChart = new FusionCharts({ {
type: 'column2d', FusionCharts.ready(function () {
renderAt: 'chart-container-2', var revenueChart = new FusionCharts({
width: '100%', type: 'column2d',
height: '300', renderAt: 'chart-container-2',
dataFormat: 'json', width: '100%',
dataSource: { height: '300',
"chart": { dataFormat: 'json',
//"caption": "Monthly revenue for last year", dataSource: {
//"subCaption": "Harry's SuperMart", "chart": {
"xAxisName": "", //"caption": "Monthly revenue for last year",
"yAxisName": "Визиты:", //"subCaption": "Harry's SuperMart",
//"numberPrefix": "", "xAxisName": "",
"paletteColors": "#c3b0fa", "yAxisName": "Визиты:",
"bgColor": "#ffffff", //"numberPrefix": "",
"borderAlpha": "20", "paletteColors": "#c3b0fa",
"canvasBorderAlpha": "0", "bgColor": "#ffffff",
"usePlotGradientColor": "0", "borderAlpha": "20",
"plotBorderAlpha": "10", "canvasBorderAlpha": "0",
"placevaluesInside": "1", "usePlotGradientColor": "0",
"rotatevalues": "1", "plotBorderAlpha": "10",
"valueFontColor": "#ffffff", "placevaluesInside": "1",
"showXAxisLine": "1", "rotatevalues": "1",
"xAxisLineColor": "#999999", "valueFontColor": "#ffffff",
"divlineColor": "#999999", "showXAxisLine": "1",
"divLineIsDashed": "1", "xAxisLineColor": "#999999",
"showAlternateHGridColor": "0", "divlineColor": "#999999",
"subcaptionFontBold": "0", "divLineIsDashed": "1",
"subcaptionFontSize": "14" "showAlternateHGridColor": "0",
}, "subcaptionFontBold": "0",
"data": [ "subcaptionFontSize": "14"
{ },
"label": "Июн 14", "data": [
"value": "3000" {
}, "label": "Июн 14",
{ "value": "3000"
"label": "", },
"value": "3400" {
}, "label": "",
{ "value": "3400"
"label": "Авг 14", },
"value": "7100" {
}, "label": "Авг 14",
{ "value": "7100"
"label": "", },
"value": "9200" {
}, "label": "",
{ "value": "9200"
"label": "Окт 14", },
"value": "3400" {
}, "label": "Окт 14",
{ "value": "3400"
"label": "", },
"value": "2850" {
}, "label": "",
{ "value": "2850"
"label": "Дек 14", },
"value": "2800" {
}, "label": "Дек 14",
{ "value": "2800"
"label": "", },
"value": "2400" {
}, "label": "",
{ "value": "2400"
"label": "Фев 15", },
"value": "3800" {
}, "label": "Фев 15",
{ "value": "3800"
"label": "", },
"value": "3900" {
}, "label": "",
{ "value": "3900"
"label": "Апр 15", },
"value": "3500" {
}, "label": "Апр 15",
{ "value": "3500"
"label": "", },
"value": "3500" {
}, "label": "",
{ "value": "3500"
"label": "Июн 15", },
"value": "4100" {
}, "label": "Июн 15",
{ "value": "4100"
"label": "", },
"value": "5900" {
}, "label": "",
{ "value": "5900"
"label": "Авг 15", },
"value": "5100" {
}, "label": "Авг 15",
{ "value": "5100"
"label": "", },
"value": "4600" {
}, "label": "",
{ "value": "4600"
"label": "Окт 15", },
"value": "2800" {
}, "label": "Окт 15",
{ "value": "2800"
"label": "", },
"value": "4500" {
}, "label": "",
{ "value": "4500"
"label": "Дек 15", },
"value": "5100" {
} "label": "Дек 15",
], "value": "5100"
"trendlines": [ }
{ ],
"line": [ "trendlines": [
{ {
"startvalue": "700000", "line": [
"color": "#1aaf5d", {
"valueOnRight": "1", "startvalue": "700000",
"displayvalue": "Monthly Target" "color": "#1aaf5d",
} "valueOnRight": "1",
] "displayvalue": "Monthly Target"
} }
] ]
} }
}).render(); ]
}); }
\ No newline at end of file }).render();
});
}
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment