Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
clinicaltrials
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
david Chavalarias
clinicaltrials
Commits
1d0d4c01
Commit
1d0d4c01
authored
Apr 21, 2017
by
Romain Loth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix labels of 'set colors' menu
parent
d3db988d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
extras_explorerjs.js
extras_explorerjs.js
+15
-1
No files found.
extras_explorerjs.js
View file @
1d0d4c01
...
@@ -20,6 +20,14 @@ function ChangeGraphAppearanceByAtt( manualflag ) {
...
@@ -20,6 +20,14 @@ function ChangeGraphAppearanceByAtt( manualflag ) {
// Seeing all the possible attributes!
// Seeing all the possible attributes!
var
AttsDict
=
{}
var
AttsDict
=
{}
var
AttsTranslations
=
{
'clust_louvain'
:
'Groupes de voisins, méthode de Louvain'
,
'pageranks'
:
'Importance dans le réseau, méthode Google'
,
'age'
:
'Date initiale d
\'
apparition du terme dans le corpus'
,
'growth_rate'
:
'Tendances et oubliés de la semaine'
,
'modularity_class'
:
'Groupes de voisins, méthode des classes de modularité'
}
var
Atts_2_Exclude
=
{}
var
Atts_2_Exclude
=
{}
for
(
var
j
in
TW
.
nodeIds
)
{
for
(
var
j
in
TW
.
nodeIds
)
{
let
nid
=
TW
.
nodeIds
[
j
]
let
nid
=
TW
.
nodeIds
[
j
]
...
@@ -76,7 +84,13 @@ function ChangeGraphAppearanceByAtt( manualflag ) {
...
@@ -76,7 +84,13 @@ function ChangeGraphAppearanceByAtt( manualflag ) {
if
(
att_s
==
"growth_rate"
)
the_method
=
"colorsRelByBins"
if
(
att_s
==
"growth_rate"
)
the_method
=
"colorsRelByBins"
if
(
att_s
==
"age"
)
the_method
=
"colorsRelByBins"
if
(
att_s
==
"age"
)
the_method
=
"colorsRelByBins"
color_menu_info
+=
'<li><a href="#" onclick=
\'
'
+
the_method
+
'("'
+
att_s
+
'")
\'
>By '
+
att_s
+
'('
+
att_c
+
')'
+
'</a></li>'
// labels :)
var
lab_att_s
;
if
(
AttsTranslations
[
att_s
])
lab_att_s
=
AttsTranslations
[
att_s
]
else
lab_att_s
=
att_s
color_menu_info
+=
'<li><a href="#" onclick=
\'
'
+
the_method
+
'("'
+
att_s
+
'")
\'
>By '
+
lab_att_s
+
'('
+
att_c
+
')'
+
'</a></li>'
// console.log('<li><a href="#" onclick=\''+the_method+'("'+att_s+'")\'>By '+att_s+'('+att_c+')'+'</a></li>')
// console.log('<li><a href="#" onclick=\''+the_method+'("'+att_s+'")\'>By '+att_s+'('+att_c+')'+'</a></li>')
}
}
$
(
"#colorgraph-menu"
).
html
(
color_menu_info
)
$
(
"#colorgraph-menu"
).
html
(
color_menu_info
)
...
...
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