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
ad2a480e
Commit
ad2a480e
authored
Jan 08, 2015
by
PkSM3
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[BUGFIX] matrix height
parent
0c063d1e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
views.py
gargantext_web/views.py
+2
-1
models.py
node/models.py
+2
-0
matrix.html
templates/matrix.html
+2
-2
No files found.
gargantext_web/views.py
View file @
ad2a480e
...
...
@@ -709,8 +709,9 @@ def node_link(request, corpus_id):
Create the HttpResponse object with the node_link dataset.
'''
print
(
"In node_link() START"
)
data
=
get_cooc
(
request
=
request
,
corpus_id
=
corpus_id
,
type
=
"node_link"
)
print
(
"In node_link() END"
)
return
JsonHttpResponse
(
data
)
def
adjacency
(
request
,
corpus_id
):
...
...
node/models.py
View file @
ad2a480e
...
...
@@ -236,11 +236,13 @@ class Node(CTENode):
@
current_app
.
task
(
filter
=
task_method
)
def
workflow
(
self
,
keys
=
None
,
ngramsextractorscache
=
None
,
ngramscaches
=
None
,
verbose
=
False
):
print
(
"In workflow() START"
)
self
.
parse_resources
()
type_document
=
NodeType
.
objects
.
get
(
name
=
'Document'
)
self
.
children
.
filter
(
type_id
=
type_document
.
pk
)
.
extract_ngrams
(
keys
=
[
'title'
,])
from
analysis.functions
import
do_tfidf
do_tfidf
(
self
)
print
(
"In workflow() END"
)
class
Node_Metadata
(
models
.
Model
):
node
=
models
.
ForeignKey
(
Node
)
...
...
templates/matrix.html
View file @
ad2a480e
...
...
@@ -61,7 +61,7 @@ text.inactive {
var
margin
=
{
top
:
80
,
right
:
0
,
bottom
:
10
,
left
:
80
},
width
=
720
,
height
=
720
;
height
=
2
720
;
var
x
=
d3
.
scale
.
ordinal
().
rangeBands
([
0
,
width
]),
z
=
d3
.
scale
.
linear
().
domain
([
0
,
4
]).
clamp
(
true
),
//alpha for color-cells
...
...
@@ -69,7 +69,7 @@ var x = d3.scale.ordinal().rangeBands([0, width]),
var
svg
=
d3
.
select
(
"body"
).
append
(
"svg"
)
.
attr
(
"width"
,
"100%"
)
.
attr
(
"height"
,
"1
00
%"
)
.
attr
(
"height"
,
"1
15
%"
)
.
style
(
"margin-left"
,
"15%"
)
.
append
(
"g"
)
.
attr
(
"transform"
,
"translate("
+
"300"
+
","
+
"300"
+
")"
);
//challenge: to calculate both parameters! maybe do something with the labels length
...
...
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