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
dfd608a1
Commit
dfd608a1
authored
Jul 29, 2022
by
Kevin Yumang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SERV-2286 - refactor chart data maanger and series data objects
parent
1b3596b2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
63 deletions
+27
-63
ChartDataManager.php
...ews/Limitless/Linechart/ChartManager/ChartDataManager.php
+16
-16
SeriesData.php
src/Views/Limitless/Linechart/ChartManager/SeriesData.php
+11
-47
No files found.
src/Views/Limitless/Linechart/ChartManager/ChartDataManager.php
View file @
dfd608a1
...
...
@@ -3,22 +3,22 @@ namespace Ceetrox\Sidekick\Views\Limitless\Linechart\ChartManager;
Class
ChartDataManager
{
private
array
$categories
;
private
Series
$series
;
private
?
int
$numberOfCharts
;
private
array
$titles
;
private
array
$colors
;
private
?
bool
$hasBoundaryGap
;
private
?
bool
$isInverted
;
private
?
bool
$hasDataZoom
;
private
?
int
$animationDuration
;
private
?
string
$yAxisLabelValueFormat
;
private
?
string
$rawData
;
private
?
bool
$showPointValues
;
private
?
bool
$isStacked
;
private
?
bool
$isArea
;
private
?
bool
$markLine
;
private
array
$categories
;
private
Series
$series
;
private
?
int
$numberOfCharts
;
private
array
$titles
;
private
array
$colors
;
private
?
bool
$hasBoundaryGap
;
private
?
bool
$isInverted
;
private
?
bool
$hasDataZoom
;
private
?
int
$animationDuration
;
private
?
string
$yAxisLabelValueFormat
;
private
?
string
$rawData
;
private
?
bool
$showPointValues
;
private
?
bool
$isStacked
;
private
?
bool
$isArea
;
private
?
bool
$markLine
;
public
function
__construct
()
{
...
...
src/Views/Limitless/Linechart/ChartManager/SeriesData.php
View file @
dfd608a1
...
...
@@ -3,14 +3,14 @@ namespace Ceetrox\Sidekick\Views\Limitless\Linechart\ChartManager;
class
SeriesData
{
private
string
$name
;
private
array
$categoryValues
;
private
int
$index
;
private
?
string
$type
;
private
?
string
$stackName
;
private
?
bool
$showPointValues
;
private
?
bool
$isArea
;
private
?
string
$markLine
;
private
string
$name
;
private
array
$categoryValues
;
private
int
$index
;
private
?
string
$type
;
private
?
string
$stackName
;
private
?
bool
$showPointValues
;
private
?
bool
$isArea
;
private
?
string
$markLine
;
public
function
__construct
()
{
...
...
@@ -28,42 +28,6 @@ class SeriesData
return
$this
->
index
;
}
private
function
getName
()
:
string
{
return
$this
->
name
;
}
private
function
getCategoryValues
()
:
array
{
return
$this
->
categoryValues
;
}
private
function
getType
()
:
?
string
{
return
$this
->
type
;
}
private
function
getStackName
()
:
?
string
{
return
$this
->
stackName
;
}
private
function
getShowPointValues
()
:
?
bool
{
return
$this
->
showPointValues
;
}
private
function
getIsArea
()
:
?
bool
{
return
$this
->
isArea
;
}
private
function
getMarkLine
()
:
?
string
{
return
$this
->
markLine
;
}
public
function
setName
(
string
$name
)
:
SeriesData
{
$this
->
name
=
$name
;
...
...
@@ -121,9 +85,9 @@ class SeriesData
{
$data
=
[];
$data
[
'name'
]
=
$this
->
getName
()
;
$data
[
'data'
]
=
$this
->
getCategoryValues
()
;
$data
[
'index'
]
=
$this
->
getIndex
()
;
$data
[
'name'
]
=
$this
->
name
;
$data
[
'data'
]
=
$this
->
categoryValues
;
$data
[
'index'
]
=
$this
->
index
;
if
(
!
is_null
(
$this
->
type
))
$data
[
'type'
]
=
$this
->
type
;
if
(
!
is_null
(
$this
->
stackName
))
$data
[
'stacked'
]
=
$this
->
stackName
;
...
...
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