Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
purescript-gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
Grégoire Locqueville
purescript-gargantext
Commits
15801a80
Commit
15801a80
authored
Jan 31, 2020
by
Przemyslaw Kaminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Dashboard] comment remaining charts which are unused for now
parent
bd6ef8a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
43 deletions
+43
-43
Dashboard.purs
src/Gargantext/Components/Nodes/Corpus/Dashboard.purs
+43
-43
No files found.
src/Gargantext/Components/Nodes/Corpus/Dashboard.purs
View file @
15801a80
...
...
@@ -63,15 +63,15 @@ dashboardLayoutLoadedCpt = R.hooksComponent "G.P.C.D.dashboardLayoutLoaded" cpt
H.h1 {} [ H.text "DashBoard" ]
, H.div {className: "row"} [
--H.div {className: "col-md-9 content"} [ chart globalPublis ]
H.div {className: "col-md-
9
content"} [ histo (globalPublisParams props) ]
, H.div {className: "col-md-3 content"} [ chart naturePublis ]
H.div {className: "col-md-
12
content"} [ histo (globalPublisParams props) ]
--
, H.div {className: "col-md-3 content"} [ chart naturePublis ]
]
--, chart distriBySchool
, pie (authorsParams props)
, H.div {className: "row"} (aSchool <$> schools)
--
, H.div {className: "row"} (aSchool <$> schools)
--, chart scatterEx
, metrics (termsParams props)
, chart sankeyEx
--
, chart sankeyEx
, tree (institutesParams props)
--, chart treeMapEx
--, chart treeEx
...
...
@@ -118,25 +118,25 @@ dashboardLayoutLoadedCpt = R.hooksComponent "G.P.C.D.dashboardLayoutLoaded" cpt
-----------------------------------------------------------------------------------------------------------
naturePublis_x :: Array String
naturePublis_x = ["Com","Articles","Thèses","Reports"]
--
naturePublis_x :: Array String
--
naturePublis_x = ["Com","Articles","Thèses","Reports"]
naturePublis_y' :: Array Int
naturePublis_y' = [23901,17417,1188,1176]
--
naturePublis_y' :: Array Int
--
naturePublis_y' = [23901,17417,1188,1176]
naturePublis_y :: Array DataD1
naturePublis_y = zipWith (\n v -> dataSerie {name: n, value: toNumber v }) naturePublis_x naturePublis_y'
--
naturePublis_y :: Array DataD1
--
naturePublis_y = zipWith (\n v -> dataSerie {name: n, value: toNumber v }) naturePublis_x naturePublis_y'
naturePublis :: Options
naturePublis = Options
{ mainTitle : "Nature of publications"
, subTitle : "Distribution by type"
, xAxis : xAxis' []
, yAxis : yAxis' { position: "left", show: false, min:0}
, series : [seriesFunnelD1 { name: "Funnel Data" } naturePublis_y]
, addZoom : false
, tooltip : tooltipTriggerAxis -- Necessary?
}
--
naturePublis :: Options
--
naturePublis = Options
--
{ mainTitle : "Nature of publications"
--
, subTitle : "Distribution by type"
--
, xAxis : xAxis' []
--
, yAxis : yAxis' { position: "left", show: false, min:0}
--
, series : [seriesFunnelD1 { name: "Funnel Data" } naturePublis_y]
--
, addZoom : false
--
, tooltip : tooltipTriggerAxis -- Necessary?
--
}
-----------------------------------------------------------------------------------------------------------
...
...
@@ -188,29 +188,29 @@ naturePublis = Options
-- , tooltip : tooltipTriggerAxis -- Necessary?
-- }
sankeyEx :: Options
sankeyEx = Options
{ mainTitle : ""
, subTitle : ""
, xAxis : xAxis' []
, yAxis : yAxis' { position: "", show: false, min:0}
, series :
[ seriesSankey
{ "data":
[ {name : "a"}, {name : "b"}
, {name:"c"}, {name:"d"} ]
, links:
[ {source : "a", target : "b", value :2.0}
, {source : "a", target : "c", value :1.0}
, {source : "b", target : "c", value :1.0}
, {source : "b", target : "d", value :3.0}
]
, layout: "none"
}
]
, tooltip : tooltipTriggerAxis -- Necessary?
, addZoom : false
}
--
sankeyEx :: Options
--
sankeyEx = Options
--
{ mainTitle : ""
--
, subTitle : ""
--
, xAxis : xAxis' []
--
, yAxis : yAxis' { position: "", show: false, min:0}
--
, series :
--
[ seriesSankey
--
{ "data":
--
[ {name : "a"}, {name : "b"}
--
, {name:"c"}, {name:"d"} ]
--
, links:
--
[ {source : "a", target : "b", value :2.0}
--
, {source : "a", target : "c", value :1.0}
--
, {source : "b", target : "c", value :1.0}
--
, {source : "b", target : "d", value :3.0}
--
]
--
, layout: "none"
--
}
--
]
--
, tooltip : tooltipTriggerAxis -- Necessary?
--
, addZoom : false
--
}
-- treeData :: Array TreeNode
-- treeData =
...
...
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