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
e98b1aa4
Commit
e98b1aa4
authored
Jul 21, 2022
by
Kevin Yumang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SERV-2286 - line chart modifications
parent
3e74be8c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
21 deletions
+10
-21
linechart.init.js
src/Views/Limitless/Linechart/Attachments/linechart.init.js
+2
-1
Config.php
src/Views/Limitless/Linechart/Config.php
+4
-4
Index.blade.php
src/Views/Limitless/Linechart/Documentation/Index.blade.php
+4
-16
No files found.
src/Views/Limitless/Linechart/Attachments/linechart.init.js
View file @
e98b1aa4
...
...
@@ -48,7 +48,8 @@ function set_data(elementObject, numberOfCharts, callback) {
setTimeout
(
function
()
{
const
defaultColors
=
[
'
#5470c6
'
,
'
#91cc75
'
,
'
#fac858
'
,
'
#ee6666
'
,
'
#73c0de
'
,
'
#3ba272
'
,
'
#fc8452
'
,
'
#9a60b4
'
,
'
#a1887f
'
,
'
#ffb980
'
,
'
#2ec7c9
'
,
'
#b6a2de
'
,
'
#5ab1ef
'
,
'
#d87a80
'
,
'
#ea7ccc
'
];
// lightcolors = ['#8dd3c7', '#ffffb3', '#bebada', '#fb8072', '#80b1d3', '#fdb462', '#b3de69', '#fccde5', '#d9d9d9', '#bc80bd', '#ccebc5', '#ffed6f'];
const
defaultColors
=
[
'
#a6cee3
'
,
'
#1f78b4
'
,
'
#b2df8a
'
,
'
#33a02c
'
,
'
#fb9a99
'
,
'
#e31a1c
'
,
'
#fdbf6f
'
,
'
#ff7f00
'
,
'
#cab2d6
'
,
'
#6a3d9a
'
,
'
#ffff99
'
,
'
#b15928
'
];;
let
options
;
let
rawData
=
elementObject
.
attr
(
'
raw
'
)
?
JSON
.
parse
(
elementObject
.
attr
(
'
raw
'
))
:
null
;
...
...
src/Views/Limitless/Linechart/Config.php
View file @
e98b1aa4
...
...
@@ -32,7 +32,7 @@
class
Config
{
public
$methodAllocation
=
[
'Limitless::
Chart'
=>
'c
hart'
'Limitless::
LineChart'
=>
'lineC
hart'
];
public
$assetAllocation
;
...
...
@@ -40,7 +40,7 @@
public
function
__construct
()
{
$this
->
assetAllocation
=
[
'Limitless::Chart'
=>
[
'Limitless::
Line
Chart'
=>
[
'Attachments/linechart.init.js'
,
secure_url
(
'/ceetrox/sidekick/resource/public/Webdesigns/design-limitless/Template/global_assets/js/plugins/visualization/echarts/echarts.min.js'
),
]
...
...
@@ -50,10 +50,10 @@
/*
|--------------------------------------------------------------------------------------------
| Method "
c
hart"
| Method "
lineC
hart"
|--------------------------------------------------------------------------------------------
*/
public
function
c
hart
(
$parameters
)
public
function
lineC
hart
(
$parameters
)
{
return
View
(
'Limitless::Linechart.Chart'
)
->
withCharts
(
$parameters
[
'charts'
]
??
1
)
...
...
src/Views/Limitless/Linechart/Documentation/Index.blade.php
View file @
e98b1aa4
...
...
@@ -17,7 +17,7 @@
$dataArray
[]
=
rand
(
1
,
100
);
}
$data
[
'data'
]
=
$dataArray
;
$data
[
'index'
]
=
0
;
//rand(0,1);
$data
[
'index'
]
=
0
;
//rand(0,1);
on what chart index to add.
$seriesData
[]
=
$data
;
}
...
...
@@ -42,27 +42,15 @@
@
endphp
@
Limitless
::
CardStart
([
'title'
=>
"Description"
,
'icon'
=>
'icon-info22'
]
)
@
Limitless
::
Chart
([
'titles'
=>
'Sample 1'
,
'charts'
=>
1
,
'colors'
=>
[
'#5470c6'
,
'#91cc75'
,
'#fac858'
,
'#ee6666'
,
'#73c0de'
,
'#3ba272'
,
'#fc8452'
,
'#9a60b4'
,
'#a1887f'
,
'#ffb980'
,
'#2ec7c9'
,
'#b6a2de'
,
'#5ab1ef'
,
'#d87a80'
,
'#ea7ccc'
],
'point-values'
=>
true
,
'boundary-gap'
=>
true
,
'inverted'
=>
false
,
'data-zoom'
=>
true
,
'stacked'
=>
false
,
'animation-duration'
=>
500
,
'y-axis-label-value-format'
=>
'{value} users'
,
'mark-line'
=>
'average'
,
@
Limitless
::
CardStart
([
'title'
=>
"Basic Setup"
,
'icon'
=>
'icon-info22'
]
)
@
Limitless
::
LineChart
([
'categories'
=>
$categories
,
'series'
=>
$seriesData
,
])
@
Limitless
::
CardStop
@
Limitless
::
CardStart
([
'title'
=>
"Chart 2 (raw)"
,
'icon'
=>
'icon-info22'
]
)
@
Limitless
::
Chart
([
@
Limitless
::
Line
Chart
([
'raw'
=>
$rawData
])
@
Limitless
::
CardStop
...
...
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