Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
S
sidekick
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Privat - Marco Schmiedel
sidekick
Commits
8e5bf50b
Commit
8e5bf50b
authored
Jul 22, 2022
by
Kevin Yumang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SERV-2286 - added linechart samples
parent
9c004a0b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
54 additions
and
10 deletions
+54
-10
Master.blade.php
src/Views/Limitless/Help/Layout/Master.blade.php
+1
-1
Index.blade.php
src/Views/Limitless/Linechart/Documentation/Index.blade.php
+53
-9
No files found.
src/Views/Limitless/Help/Layout/Master.blade.php
View file @
8e5bf50b
...
@@ -42,7 +42,7 @@
...
@@ -42,7 +42,7 @@
@
Limitless
::
SideNavMenuSectionTitle
([
'title'
=>
'Charts'
])
@
Limitless
::
SideNavMenuSectionTitle
([
'title'
=>
'Charts'
])
@
Limitless
::
SideNavMenuItem
([
'url'
=>
'?page=Linechart'
,
'target'
=>
'_self'
,
'icon'
=>
'icon-statistics'
,
'title'
=>
'Line chart'
])
@
Limitless
::
SideNavMenuItem
([
'url'
=>
'?page=Linechart'
,
'target'
=>
'_self'
,
'icon'
=>
'icon-statistics'
,
'title'
=>
'Line chart'
])
@
Limitless
::
SideNavMenuItem
([
'url'
=>
'?page=
Areachart'
,
'target'
=>
'_self'
,
'icon'
=>
'icon-chart'
,
'title'
=>
'Area
chart'
])
@
Limitless
::
SideNavMenuItem
([
'url'
=>
'?page=
Barchart'
,
'target'
=>
'_self'
,
'icon'
=>
'icon-stats-bars3'
,
'title'
=>
'Bar
chart'
])
@
Limitless
::
SideNavMenuSectionTitle
([
'title'
=>
'Navigations'
])
@
Limitless
::
SideNavMenuSectionTitle
([
'title'
=>
'Navigations'
])
@
Limitless
::
SideNavMenuItem
([
'url'
=>
'?page=Sidenav'
,
'target'
=>
'_self'
,
'icon'
=>
'icon-sort'
,
'title'
=>
'Side Navigation'
])
@
Limitless
::
SideNavMenuItem
([
'url'
=>
'?page=Sidenav'
,
'target'
=>
'_self'
,
'icon'
=>
'icon-sort'
,
'title'
=>
'Side Navigation'
])
...
...
src/Views/Limitless/Linechart/Documentation/Index.blade.php
View file @
8e5bf50b
...
@@ -7,22 +7,30 @@
...
@@ -7,22 +7,30 @@
// sample backend data
// sample backend data
$categories
=
[
'Jan'
,
'Feb'
,
'Mar'
,
'Apr'
,
'May'
,
'Jun'
,
'July'
,
'Aug'
,
'Sep'
,
'Oct'
,
'Nov'
,
'Dec'
];
$categories
=
[
'Jan'
,
'Feb'
,
'Mar'
,
'Apr'
,
'May'
,
'Jun'
,
'July'
,
'Aug'
,
'Sep'
,
'Oct'
,
'Nov'
,
'Dec'
];
$series
=
[
'ONC'
,
'APR'
,
'SPR'
,
'PHX'
,
'SIG'
,
'BRG'
,
'MNT'
,
'SDK'
,
'OCT'
];
$series
=
[
'ONC'
,
'APR'
,
'SPR'
,
'PHX'
];
$seriesData
=
[];
$seriesData
=
[];
$multichartSeriesData
=
[];
foreach
(
$series
as
$s
)
{
foreach
(
$series
as
$s
)
{
$data
[
'name'
]
=
$s
;
$data
[
'name'
]
=
$
multiData
[
'name'
]
=
$
s
;
$dataArray
=
[];
$dataArray
=
[];
foreach
(
$categories
as
$c
)
{
foreach
(
$categories
as
$c
)
{
$dataArray
[]
=
rand
(
1
,
100
);
$dataArray
[]
=
rand
(
1
,
100
);
}
}
$data
[
'data'
]
=
$dataArray
;
$data
[
'data'
]
=
$
multiData
[
'data'
]
=
$
dataArray
;
$data
[
'index'
]
=
0
;
//rand(0,1); on what chart index to add.
$data
[
'index'
]
=
0
;
//rand(0,1); on what chart index to add.
$multiData
[
'index'
]
=
rand
(
0
,
1
);
$seriesData
[]
=
$data
;
$seriesData
[]
=
$data
;
$multichartSeriesData
[]
=
$multiData
;
}
}
// json string data should be valid else it will return null
// json string data should be valid else it will return null
$rawData
=
'{
$rawData
=
'{
"color":["#8dd3c7", "#ffffb3"],
"textStyle":{
"color":"#fff"
},
"xAxis":{
"xAxis":{
"type":"category",
"type":"category",
"boundaryGap":false,
"boundaryGap":false,
...
@@ -49,15 +57,51 @@
...
@@ -49,15 +57,51 @@
])
])
@
Limitless
::
CardStop
@
Limitless
::
CardStop
@
Limitless
::
CardStart
([
'title'
=>
"
Chart 2 (raw)
"
,
'icon'
=>
'icon-info22'
]
)
@
Limitless
::
CardStart
([
'title'
=>
"
Area Setup
"
,
'icon'
=>
'icon-info22'
]
)
@
Limitless
::
LineChart
([
@
Limitless
::
LineChart
([
'raw'
=>
$rawData
'is-area'
=>
true
,
'stacked'
=>
true
,
'categories'
=>
$categories
,
'series'
=>
$seriesData
,
])
@
Limitless
::
CardStop
@
Limitless
::
CardStart
([
'title'
=>
"Inverted Setup"
,
'icon'
=>
'icon-info22'
]
)
@
Limitless
::
LineChart
([
'inverted'
=>
true
,
'categories'
=>
$categories
,
'series'
=>
$seriesData
,
])
@
Limitless
::
CardStop
@
Limitless
::
CardStart
([
'title'
=>
"Multi Chart Setup"
,
'icon'
=>
'icon-info22'
]
)
@
Limitless
::
LineChart
([
'titles'
=>
[
'Chart 1'
,
'Chart 2'
],
'charts'
=>
2
,
'show-values'
=>
true
,
'categories'
=>
$categories
,
'series'
=>
$multichartSeriesData
,
])
])
@
Limitless
::
CardStop
@
Limitless
::
CardStop
{{
--
@
Limitless
::
CardStart
([
'title'
=>
"Chart 3"
,
'icon'
=>
'icon-info22'
]
)
--
}}
@
Limitless
::
CardStart
([
'title'
=>
"Advanced Setup"
,
'icon'
=>
'icon-info22'
]
)
{{
--
@
Limitless
::
LineChartStart
--
}}
@
Limitless
::
LineChart
([
{{
--
@
Limitless
::
LineChartStop
--
}}
'titles'
=>
'Chart 1'
,
{{
--
@
Limitless
::
CardStop
--
}}
'show-values'
=>
true
,
'y-axis-label-value-format'
=>
'{value} users'
,
'data-zoom'
=>
true
,
'boundary-gap'
=>
false
,
'animation-duration'
=>
2000
,
'colors'
=>
[
'#8dd3c7'
,
'#ffffb3'
,
'#bebada'
,
'#fb8072'
,
'#80b1d3'
,
'#fdb462'
,
'#b3de69'
,
'#fccde5'
,
'#d9d9d9'
,
'#bc80bd'
,
'#ccebc5'
,
'#ffed6f'
],
'categories'
=>
$categories
,
'series'
=>
$seriesData
,
])
@
Limitless
::
CardStop
@
Limitless
::
CardStart
([
'title'
=>
"Raw Setup"
,
'icon'
=>
'icon-info22'
]
)
@
Limitless
::
LineChart
([
'raw'
=>
$rawData
])
@
Limitless
::
CardStop
@
stop
@
stop
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