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
fe7ad566
Commit
fe7ad566
authored
Mar 12, 2018
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CHART] Realistic legend.
parent
d809d0c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
Chart.purs
src/Chart.purs
+8
-8
No files found.
src/Chart.purs
View file @
fe7ad566
...
...
@@ -378,7 +378,7 @@ ex1 = echarts
[ option
[ tooltip [trigger "axis"]
, grid [containLabel true]
, legend [data' ["
data1", "data2", "data3
"]]
, legend [data' ["
Query A", "Query B", "Query C
"]]
, xAxis
[ type' "category"
, axisTick [alignWithLabel true]
...
...
@@ -408,22 +408,22 @@ dz2 = unsafeFromPropsArray
ya1 = unsafeFromPropsArray
[ type' "value"
, name "
Eur
"
, name "
Publications (by year)
"
, min 0
, position "left"
, axisLabel [formatter "{value}
h
"]
, axisLabel [formatter "{value}"]
]
ya2 = unsafeFromPropsArray
[ type' "value"
, name "
Eur
"
, name "
Score metric
"
, min 0
, position "right"
, axisLabel [formatter "{value}
Eur
"]
, axisLabel [formatter "{value}"]
]
sd1 = unsafeFromPropsArray
[ name "
data1
"
[ name "
Query A
"
, type' "line"
, label [normal[showp true, position "top"]]
, lineStyle [ normal
...
...
@@ -436,7 +436,7 @@ sd1 = unsafeFromPropsArray
]
sd2 = unsafeFromPropsArray
[ name "
data2
"
[ name "
Query B
"
, type' "bar"
, label [normal[showp true, position "top"]]
, yAxisIndex 1
...
...
@@ -444,7 +444,7 @@ sd2 = unsafeFromPropsArray
]
sd3 = unsafeFromPropsArray
[ name "
data3
"
[ name "
Query C
"
, type' "bar"
, label [normal[showp true, position "top"]]
, yAxisIndex 1
...
...
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