Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
humanities
gargantext
Commits
a34dd00a
Commit
a34dd00a
authored
Sep 14, 2015
by
delanoe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FEAT] Ergonomic and text modifications.
parent
fc24c3c3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
7 deletions
+10
-7
api.py
gargantext_web/api.py
+3
-1
chart.html
templates/chart.html
+7
-6
No files found.
gargantext_web/api.py
View file @
a34dd00a
...
...
@@ -426,7 +426,9 @@ class NodesChildrenQueries(APIView):
# authorized field names
sql_fields
=
set
({
'id'
,
'name'
,
'nodes.count'
,
'ngrams.count'
,
'nodes.count'
,
'nodes.countnorm'
,
'ngrams.count'
,
'ngrams.terms'
,
'ngrams.n'
,
})
for
hyperdata
in
_hyperdata_list
:
...
...
templates/chart.html
View file @
a34dd00a
...
...
@@ -224,21 +224,20 @@
<ul
class=
"datasets"
>
<button
class=
"add"
ng-click=
"addDataset()"
>
Add a dataset...
</button>
<li
class=
"dataset"
ng-controller=
"DatasetController"
ng-repeat=
"dataset in datasets"
>
<hr/>
<div
class=
"corpus"
>
<button
ng-click=
"removeDataset($index)"
title=
"
r
emove this dataset"
>
X
</button>
<button
ng-click=
"removeDataset($index)"
title=
"
R
emove this dataset"
>
X
</button>
<select
ng-model=
"mesured"
style=
"background-color:{{ getColor($index, datasets.length) }}"
ng-options=
"value as key for (key, value) in {'Documents count': 'nodes.count', 'Documents count (normalized)': 'nodes.countnorm', 'Ngrams count': 'ngrams.count'}"
ng-change=
"updateQuery()"
></select>
in the project
<select
ng-model=
"projectId"
ng-change=
"updateCorpora()"
ng-options=
"project.id as project.name for project in projects"
></select>
,
corpus
<select
ng-model=
"corpusId"
ng-change=
"updateEntities()"
ng-options=
"corpus.id as corpus.name for corpus in corpora"
></select>
</div>
</div>
<div
class=
"filters"
ng-if=
"entities"
>
<ul>
<li
ng-repeat=
"filter in filters"
>
<button
ng-click=
"removeFilter($index)"
title=
"
r
emove this filter"
>
x
</button>
<button
ng-click=
"removeFilter($index)"
title=
"
R
emove this filter"
>
x
</button>
<span>
...where the
</span>
<select
ng-model=
"filter.entity"
ng-options=
"entity as entity.key for entity in entities"
></select>
<span
ng-if=
"filter.entity.key != 'ngrams'"
>
...
...
@@ -258,8 +257,10 @@
</div>
</li>
</ul>
<hr/>
<button
class=
"add"
ng-click=
"addDataset()"
>
Compare with...
</button>
<hr/>
<button
style=
"width:100%"
class=
"refresh"
ng-click=
"query()"
>
Refresh results
</button>
<div
class=
"graph"
>
...
...
@@ -272,7 +273,7 @@
<br/>
Y-axis: use a
<select
ng-model=
"graph.options.axes.y.type"
ng-options=
"type for type in ['linear', 'log'
, 'specificities'
]"
></select>
<select
ng-model=
"graph.options.axes.y.type"
ng-options=
"type for type in ['linear', 'log']"
></select>
scale
<br/>
...
...
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