Commit 3f6a8d49 authored by Mathieu Rodic's avatar Mathieu Rodic

[FEATURE] Started working on the static files for graph plotting

parent c12d928c
(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
{% 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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment