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
3f6a8d49
Commit
3f6a8d49
authored
Nov 18, 2014
by
Mathieu Rodic
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FEATURE] Started working on the static files for graph plotting
parent
c12d928c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
65 additions
and
0 deletions
+65
-0
graph-it.js
static/js/graph-it.js
+37
-0
graph-it.html
templates/graph-it.html
+28
-0
No files found.
static/js/graph-it.js
0 → 100644
View file @
3f6a8d49
(
function
(
$
)
{
$
.
fn
.
graphIt
=
function
(
_width
,
_height
)
{
var
container
=
this
.
first
();
var
data
;
var
method
;
var
dcChart
;
container
.
feed
=
function
(
_data
)
{
data
=
_data
;
var
dimensions
=
data
[
0
].
length
;
};
container
.
resize
=
function
(
_width
,
_height
)
{
width
=
_width
;
height
=
_height
;
container
.
width
(
width
).
height
(
height
);
return
container
;
};
container
.
plot
=
function
(
_method
)
{
method
=
_method
;
container
.
empty
();
};
container
.
css
(
'background'
,
'#FFF'
).
text
(
"graphIt"
);
container
.
resize
(
_width
,
_height
);
var
dcChart
=
dc
.
barChart
(
container
.
get
(
0
));
return
container
;
};
})(
jQuery
);
var
graph
=
$
(
'.graph-it'
).
graphIt
();
\ No newline at end of file
templates/graph-it.html
0 → 100644
View file @
3f6a8d49
{% extends "menu.html" %}
{% block css %}
{% load staticfiles %}
<link
rel=
"stylesheet"
href=
"{% static "
css
/
bootstrap
.
css
"
%}"
>
<link
rel=
"stylesheet"
href=
"{% static "
css
/
bootstrap-theme
.
min
.
css
"
%}"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"http://jun9.github.io/dc.js/css/dc.css"
/>
{% endblock %}
{% block content %}
<div
class=
"container theme-showcase"
role=
"main"
>
<div
class=
"jumbotron"
>
<h1>
Gargantext
</h1>
<p>
A web platform to explore text-mining
</p>
</div>
</div>
<div
class=
"container graph-it"
></div>
<script
type=
"text/javascript"
src=
"http://jun9.github.io/dc.js/js/d3.js"
></script>
<script
type=
"text/javascript"
src=
"http://jun9.github.io/dc.js/js/crossfilter.js"
></script>
<script
type=
"text/javascript"
src=
"http://jun9.github.io/dc.js/js/dc.js"
></script>
<script
type=
"text/javascript"
src=
"{% static "
js
/
jquery
/
jquery
.
min
.
js
"
%}"
></script>
<script
type=
"text/javascript"
src=
"{% static "
js
/
graph-it
.
js
"
%}"
></script>
{% endblock %}
\ No newline at end of file
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