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
142
Issues
142
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
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
gargantext
purescript-gargantext
Commits
df46c07f
Commit
df46c07f
authored
Sep 10, 2018
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Chart] Sankey axis and data improved.
parent
15ca83bf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
ECharts.purs
src/Gargantext/Components/Charts/Options/ECharts.purs
+1
-1
Dashboard.purs
src/Gargantext/Pages/Corpus/Doc/Facets/Dashboard.purs
+6
-5
No files found.
src/Gargantext/Components/Charts/Options/ECharts.purs
View file @
df46c07f
...
@@ -115,7 +115,7 @@ data3 = {name: "Test", icon: icon $ Shape Diamond, textStyle: textStyle'}
...
@@ -115,7 +115,7 @@ data3 = {name: "Test", icon: icon $ Shape Diamond, textStyle: textStyle'}
xAxis :: Array String -> XAxis
xAxis :: Array String -> XAxis
xAxis [] = unsafeCoerce {}
--
xAxis [] = unsafeCoerce {}
xAxis xs = { "data": xData xs
xAxis xs = { "data": xData xs
, "type": "category"
, "type": "category"
, axisTick: {alignWithLabel: true}
, axisTick: {alignWithLabel: true}
...
...
src/Gargantext/Pages/Corpus/Doc/Facets/Dashboard.purs
View file @
df46c07f
...
@@ -122,16 +122,18 @@ scatterEx = Options { mainTitle : "Scatter test"
...
@@ -122,16 +122,18 @@ scatterEx = Options { mainTitle : "Scatter test"
sankeyEx :: Options
sankeyEx :: Options
sankeyEx = Options { mainTitle : "
Sankey
"
sankeyEx = Options { mainTitle : ""
, subTitle : "
Sankey subtitle
"
, subTitle : ""
, xAxis : xAxis []
, xAxis : xAxis []
, yAxis : [ SeriesSankey $ mkSankey [{name : "a"}, {name : "b"}, {name:"c"}]
, yAxis : [ SeriesSankey $ mkSankey [{name : "a"}, {name : "b"}, {name:"c"}
, {name:"d"}
]
[{source : "a", target : "b", value :2.0}
[{source : "a", target : "b", value :2.0}
, {source : "a", target : "c", value :1.0}
, {source : "a", target : "c", value :1.0}
, {source : "b", target : "c", value :1.0}
, {source : "b", target : "d", value :3.0}
]
]
]
]
, yAxisFormat : (YAxisFormat { position : ""
, yAxisFormat : (YAxisFormat { position : ""
, visible :
tru
e
, visible :
fals
e
})
})
, addZoom : false
, addZoom : false
}
}
...
@@ -139,6 +141,5 @@ sankeyEx = Options { mainTitle : "Sankey"
...
@@ -139,6 +141,5 @@ sankeyEx = Options { mainTitle : "Sankey"
layoutDashboard :: forall props. Spec State props Action
layoutDashboard :: forall props. Spec State props Action
layoutDashboard = simpleSpec performAction render
layoutDashboard = simpleSpec performAction render
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