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
b1e2d700
Commit
b1e2d700
authored
Jul 22, 2022
by
Kevin Yumang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SERV-2286 - added linechart samples (for raw)
parent
8d66e343
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
95 additions
and
8 deletions
+95
-8
Config.php
src/Views/Limitless/Barchart/Config.php
+1
-1
Index.blade.php
src/Views/Limitless/Linechart/Documentation/Index.blade.php
+93
-6
LineChart.blade.php
src/Views/Limitless/Linechart/LineChart.blade.php
+1
-1
No files found.
src/Views/Limitless/Barchart/Config.php
View file @
b1e2d700
...
@@ -47,7 +47,7 @@
...
@@ -47,7 +47,7 @@
public
function
__construct
()
public
function
__construct
()
{
{
$this
->
assetAllocation
=
[
$this
->
assetAllocation
=
[
'Limitless::
Line
Chart'
=>
[
'Limitless::
Bar
Chart'
=>
[
'Attachments/barchart.init.js'
,
'Attachments/barchart.init.js'
,
secure_url
(
'/ceetrox/sidekick/resource/public/Webdesigns/design-limitless/Template/global_assets/js/plugins/visualization/echarts/echarts.min.js'
),
secure_url
(
'/ceetrox/sidekick/resource/public/Webdesigns/design-limitless/Template/global_assets/js/plugins/visualization/echarts/echarts.min.js'
),
]
]
...
...
src/Views/Limitless/Linechart/Documentation/Index.blade.php
View file @
b1e2d700
...
@@ -25,25 +25,112 @@
...
@@ -25,25 +25,112 @@
$multichartSeriesData
[]
=
$multiData
;
$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"],
"color":[
"#8dd3c7",
"#ffffb3"
],
"textStyle":{
"textStyle":{
"color":"#fff"
"color":"#fff"
},
"title":{
"text":"Distribution of Electricity",
"subtext":"Fake Data",
"textStyle": {
"color": "#fff"
}
},
"tooltip":{
"trigger":"axis",
"axisPointer":{
"type":"cross"
}
},
"toolbox":{
"show":true,
"feature":{
"saveAsImage":{
}
}
},
},
"xAxis":{
"xAxis":{
"type":"category",
"type":"category",
"boundaryGap":false,
"boundaryGap":false,
"data":["
Mon","Tue","Wed","Thu","Fri","Sat","Sun
"]
"data":["
00:00","01:15","02:30","03:45","05:00","06:15","07:30","08:45","10:00","11:15","12:30","13:45","15:00","16:15","17:30","18:45","20:00","21:15","22:30","23:45
"]
},
},
"yAxis":{
"yAxis":{
"type":"value"
"type":"value",
"axisLabel":{
"formatter":"{value} W"
},
"axisPointer":{
"snap":true
}
},
"visualMap":{
"show":false,
"dimension":0,
"pieces":[
{
"lte":6,
"color":"green"
},
{
"gt":6,
"lte":8,
"color":"red"
},
{
"gt":8,
"lte":14,
"color":"green"
},
{
"gt":14,
"lte":17,
"color":"red"
},
{
"gt":17,
"color":"green"
}
]
},
},
"series":[
"series":[
{
{
"
data":[820,932,901,934,1290,1330,1320]
,
"
name":"Electricity"
,
"type":"line",
"type":"line",
"areaStyle":{}
"smooth":true,
"data":[300,280,250,260,270,300,550,500,400,390,380,390,400,500,600,750,800,700,600,400],
"markArea":{
"itemStyle":{
"color":"rgba(255, 173, 177, 0.4)"
},
"data":[
[
{
"name":"Morning Peak",
"xAxis":"07:30"
},
{
"xAxis":"10:00"
}
],
[
{
"name":"Evening Peak",
"xAxis":"17:30"
},
{
"xAxis":"21:15"
}
]
]
}
}
}
]
]
}'
;
}'
;
...
...
src/Views/Limitless/Linechart/LineChart.blade.php
View file @
b1e2d700
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
@
if
($
markLine
!=
null
)
mark-line=
"{{ $markLine }}"
@
endif
@
if
($
markLine
!=
null
)
mark-line=
"{{ $markLine }}"
@
endif
categories=
"{{ json_encode($categories) }}"
categories=
"{{ json_encode($categories) }}"
series=
"{{ json_encode($series) }}"
series=
"{{ json_encode($series) }}"
raw=
"{{
$raw
}}"
raw=
"{{
json_encode(json_decode($raw))
}}"
>
>
</div>
</div>
</div>
</div>
\ 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