Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
taskonsite-архив-перенесен
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dmitry Korolev
taskonsite-архив-перенесен
Commits
451f014d
Commit
451f014d
authored
Mar 15, 2016
by
Олег Гиммельшпах
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- fix
parent
23c91369
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
193 additions
and
2 deletions
+193
-2
frontend/views/layouts/foot.php
frontend/views/layouts/foot.php
+2
-2
frontend/web/js/custom.js
frontend/web/js/custom.js
+191
-0
No files found.
frontend/views/layouts/foot.php
View file @
451f014d
...
@@ -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
(
'/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
frontend/web/js/custom.js
View file @
451f014d
...
@@ -108,3 +108,194 @@ $(document).ready(function() {
...
@@ -108,3 +108,194 @@ $(document).ready(function() {
return
false
;
return
false
;
});
});
});
});
FusionCharts
.
ready
(
function
()
{
var
revenueChart
=
new
FusionCharts
({
type
:
'
doughnut2d
'
,
renderAt
:
'
chart-container
'
,
width
:
'
100%
'
,
height
:
'
450
'
,
dataFormat
:
'
json
'
,
dataSource
:
{
"
chart
"
:
{
//"caption": "Expenditures Incurred in Publishing a Book",
"
bgcolor
"
:
"
FFFFFF
"
,
"
showvalues
"
:
"
1
"
,
"
showpercentvalues
"
:
"
1
"
,
"
showborder
"
:
"
0
"
,
"
showplotborder
"
:
"
0
"
,
//"showlegend": "1",
//"legendborder": "0",
//"legendposition": "bottom",
"
enablesmartlabels
"
:
"
1
"
,
"
use3dlighting
"
:
"
0
"
,
"
showshadow
"
:
"
0
"
,
//"legendbgcolor": "#CCCCCC",
//"legendbgalpha": "20",
//"legendborderalpha": "0",
//"legendshadow": "0",
//"legendnumcolumns": "3",
"
labelFont
"
:
"
RobotoBold
"
,
"
labelFontColor
"
:
"
2d323a
"
,
"
labelFontSize
"
:
"
14
"
,
"
labelFontBold
"
:
"
1
"
,
"
palettecolors
"
:
"
#ff3030,#ff7711,#ffc600,#95d900,#97cbdd,#cdc9c4
"
,
"
showHoverEffect
"
:
"
1
"
,
},
"
data
"
:
[
{
"
label
"
:
"
Переходы из поисковых сетей
"
,
"
value
"
:
"
71.75
"
},
{
"
label
"
:
"
Переходы по рекламе
"
,
"
value
"
:
"
12.28
"
},
{
"
label
"
:
"
Прямые заходы
"
,
"
value
"
:
"
12.19
"
},
{
"
label
"
:
"
Другие
"
,
"
value
"
:
"
2.26
"
},
{
"
label
"
:
"
Другие
"
,
"
value
"
:
"
0.76
"
},
{
"
label
"
:
"
Другие
"
,
"
value
"
:
"
0.76
"
}
]
}
}).
render
();
});
FusionCharts
.
ready
(
function
()
{
var
revenueChart
=
new
FusionCharts
({
type
:
'
column2d
'
,
renderAt
:
'
chart-container-2
'
,
width
:
'
100%
'
,
height
:
'
300
'
,
dataFormat
:
'
json
'
,
dataSource
:
{
"
chart
"
:
{
//"caption": "Monthly revenue for last year",
//"subCaption": "Harry's SuperMart",
"
xAxisName
"
:
""
,
"
yAxisName
"
:
"
Визиты:
"
,
//"numberPrefix": "",
"
paletteColors
"
:
"
#c3b0fa
"
,
"
bgColor
"
:
"
#ffffff
"
,
"
borderAlpha
"
:
"
20
"
,
"
canvasBorderAlpha
"
:
"
0
"
,
"
usePlotGradientColor
"
:
"
0
"
,
"
plotBorderAlpha
"
:
"
10
"
,
"
placevaluesInside
"
:
"
1
"
,
"
rotatevalues
"
:
"
1
"
,
"
valueFontColor
"
:
"
#ffffff
"
,
"
showXAxisLine
"
:
"
1
"
,
"
xAxisLineColor
"
:
"
#999999
"
,
"
divlineColor
"
:
"
#999999
"
,
"
divLineIsDashed
"
:
"
1
"
,
"
showAlternateHGridColor
"
:
"
0
"
,
"
subcaptionFontBold
"
:
"
0
"
,
"
subcaptionFontSize
"
:
"
14
"
},
"
data
"
:
[
{
"
label
"
:
"
Июн 14
"
,
"
value
"
:
"
3000
"
},
{
"
label
"
:
""
,
"
value
"
:
"
3400
"
},
{
"
label
"
:
"
Авг 14
"
,
"
value
"
:
"
7100
"
},
{
"
label
"
:
""
,
"
value
"
:
"
9200
"
},
{
"
label
"
:
"
Окт 14
"
,
"
value
"
:
"
3400
"
},
{
"
label
"
:
""
,
"
value
"
:
"
2850
"
},
{
"
label
"
:
"
Дек 14
"
,
"
value
"
:
"
2800
"
},
{
"
label
"
:
""
,
"
value
"
:
"
2400
"
},
{
"
label
"
:
"
Фев 15
"
,
"
value
"
:
"
3800
"
},
{
"
label
"
:
""
,
"
value
"
:
"
3900
"
},
{
"
label
"
:
"
Апр 15
"
,
"
value
"
:
"
3500
"
},
{
"
label
"
:
""
,
"
value
"
:
"
3500
"
},
{
"
label
"
:
"
Июн 15
"
,
"
value
"
:
"
4100
"
},
{
"
label
"
:
""
,
"
value
"
:
"
5900
"
},
{
"
label
"
:
"
Авг 15
"
,
"
value
"
:
"
5100
"
},
{
"
label
"
:
""
,
"
value
"
:
"
4600
"
},
{
"
label
"
:
"
Окт 15
"
,
"
value
"
:
"
2800
"
},
{
"
label
"
:
""
,
"
value
"
:
"
4500
"
},
{
"
label
"
:
"
Дек 15
"
,
"
value
"
:
"
5100
"
}
],
"
trendlines
"
:
[
{
"
line
"
:
[
{
"
startvalue
"
:
"
700000
"
,
"
color
"
:
"
#1aaf5d
"
,
"
valueOnRight
"
:
"
1
"
,
"
displayvalue
"
:
"
Monthly Target
"
}
]
}
]
}
}).
render
();
});
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment