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
9b39f1fb
Commit
9b39f1fb
authored
Mar 14, 2019
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CHART][SCATTER] fix data.
parent
d00d8d64
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
8 deletions
+10
-8
ECharts.purs
src/Gargantext/Components/Charts/Options/ECharts.purs
+3
-2
Series.purs
src/Gargantext/Components/Charts/Options/Series.purs
+2
-1
Dashboard.purs
src/Gargantext/Pages/Corpus/Dashboard.purs
+3
-3
Metrics.purs
src/Gargantext/Pages/Corpus/Metrics.purs
+2
-2
No files found.
src/Gargantext/Components/Charts/Options/ECharts.purs
View file @
9b39f1fb
...
...
@@ -163,10 +163,11 @@ series sh name ss = { name: name
, "data": ss
}
seriesD2 :: Chart -> Number -> Array (Array Number) -> D2
seriesD2 sh size ds = { "symbolSize" : size
seriesD2 ::
String ->
Chart -> Number -> Array (Array Number) -> D2
seriesD2
n
sh size ds = { "symbolSize" : size
, "data" : ds
, "type" : seriesType sh
, name : n
}
...
...
src/Gargantext/Components/Charts/Options/Series.purs
View file @
9b39f1fb
...
...
@@ -59,7 +59,8 @@ type D1 =
-- | Scatter Dimension 2 data
type D2 =
{ "symbolSize" :: Number
{ name :: String
, "symbolSize" :: Number
, "data" :: Array (Array Number)
, "type" :: SeriesType
}
...
...
src/Gargantext/Pages/Corpus/Dashboard.purs
View file @
9b39f1fb
...
...
@@ -108,9 +108,9 @@ scatterEx :: Options
scatterEx = Options { mainTitle : "Scatter test"
, subTitle : "Scatter subtitle"
, xAxis : xAxis []
, yAxis : [ SeriesD2 $ seriesD2 Scatter 10.0 [[2.0,3.0],[3.0,4.0]]
, SeriesD2 $ seriesD2 Scatter 5.0 [[1.0,3.0],[5.0,4.0]]
, SeriesD2 $ seriesD2 Scatter 10.0 [[10.0,3.0],[8.0,4.0]]
, yAxis : [ SeriesD2 $ seriesD2
"name1"
Scatter 10.0 [[2.0,3.0],[3.0,4.0]]
, SeriesD2 $ seriesD2
"name2"
Scatter 5.0 [[1.0,3.0],[5.0,4.0]]
, SeriesD2 $ seriesD2
"name3"
Scatter 10.0 [[10.0,3.0],[8.0,4.0]]
]
, yAxisFormat : (YAxisFormat { position : ""
, visible : true
...
...
src/Gargantext/Pages/Corpus/Metrics.purs
View file @
9b39f1fb
...
...
@@ -75,9 +75,9 @@ scatterOptions ds = Options
--{-
map2series :: Map TermList (Array (Array Number)) -> Array Serie
map2series ms = map (\k -> maybe (toSeries
[[]]) toSeries
$ lookup k ms) ((Set.toUnfoldable $ keys ms) :: (Array TermList))
map2series ms = map (\k -> maybe (toSeries
k [[]]) (toSeries k)
$ lookup k ms) ((Set.toUnfoldable $ keys ms) :: (Array TermList))
where
toSeries
xs = SeriesD2 $ seriesD2
Scatter 5.0 xs
toSeries
k xs = SeriesD2 $ seriesD2 (show k)
Scatter 5.0 xs
--}
getMetrics :: Path -> Aff Loaded
...
...
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