Skip to content

Commit

Permalink
working on JS API
Browse files Browse the repository at this point in the history
  • Loading branch information
cornhundred committed Feb 17, 2017
1 parent 456c928 commit d143494
Show file tree
Hide file tree
Showing 8 changed files with 45 additions and 21 deletions.
Binary file modified docs/_build_html/.doctrees/clustergrammer_js.doctree
Binary file not shown.
Binary file modified docs/_build_html/.doctrees/environment.pickle
Binary file not shown.
18 changes: 11 additions & 7 deletions docs/_build_html/_sources/clustergrammer_js.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,23 +58,27 @@ Clustergrammer-JS' API allows users to pass options to the front-end visualizati

.. js:class:: Clustergrammer(args)

The Clusterrammer JavaScript object.
The Clusterrammer JavaScript object takes the ``args`` object and produces a visualization on the page.

:args: The visualization JSON as well as optional arguments will be passed here.
:args: This object contains

.. js:attribute:: args.network_data

This is where the visualization JSON should be passed.
This required attribute is where the visualization JSON should be passed as a JavaScript object.

.. js:attribute:: args.root

This required attribute is the ``id`` of the container where Clustergrammer will be built. Each Clustergrammer visualization in a page should be passed a unique ``id``.
This required attribute is the ``id`` (passed as a string) of the container where Clustergrammer will be built. Each Clustergrammer visualization in a page should be passed a unique ``id``.

.. :attribute:: args.about
.. js:attribute:: args.about

This op
This argument is a string (which can include HTML) that will produce a small about section at the top of the sidebar. This can be used to provide a quick description about the data or visualization.

Clustergrammer functions:
.. js:attribute:: args.row_tip_callback

This

These functions can be run after the visualization is built to update the visualization.

.. js:function:: update_cats(row_data)

Expand Down
24 changes: 18 additions & 6 deletions docs/_build_html/clustergrammer_js.html
Original file line number Diff line number Diff line change
Expand Up @@ -197,29 +197,41 @@ <h2>Installation<a class="headerlink" href="#installation" title="Permalink to t
<dl class="class">
<dt id="Clustergrammer">
<em class="property">class </em><code class="descname">Clustergrammer</code><span class="sig-paren">(</span><em>args</em><span class="sig-paren">)</span><a class="headerlink" href="#Clustergrammer" title="Permalink to this definition"></a></dt>
<dd><p>The Clusterrammer JavaScript object.</p>
<dd><p>The Clusterrammer JavaScript object takes the <code class="docutils literal"><span class="pre">args</span></code> object and produces a visualization on the page.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Args:</th><td class="field-body"><p class="first">The visualization JSON as well as optional arguments will be passed here.</p>
<tr class="field-odd field"><th class="field-name">Args:</th><td class="field-body"><p class="first">This object contains</p>
<dl class="attribute">
<dt id="args.network_data">
<code class="descclassname">args.</code><code class="descname">network_data</code><a class="headerlink" href="#args.network_data" title="Permalink to this definition"></a></dt>
<dd><p>This is where the visualization JSON should be passed.</p>
<dd><p>This required attribute is where the visualization JSON should be passed as a JavaScript object.</p>
</dd></dl>

<dl class="last attribute">
<dl class="attribute">
<dt id="args.root">
<code class="descclassname">args.</code><code class="descname">root</code><a class="headerlink" href="#args.root" title="Permalink to this definition"></a></dt>
<dd><p>This required attribute is the <code class="docutils literal"><span class="pre">id</span></code> of the container where Clustergrammer will be built. Each Clustergrammer visualization in a page should be passed a unique <code class="docutils literal"><span class="pre">id</span></code>.</p>
<dd><p>This required attribute is the <code class="docutils literal"><span class="pre">id</span></code> (passed as a string) of the container where Clustergrammer will be built. Each Clustergrammer visualization in a page should be passed a unique <code class="docutils literal"><span class="pre">id</span></code>.</p>
</dd></dl>

<dl class="attribute">
<dt id="args.about">
<code class="descclassname">args.</code><code class="descname">about</code><a class="headerlink" href="#args.about" title="Permalink to this definition"></a></dt>
<dd><p>This argument is a string (which can include HTML) that will produce a small about section at the top of the sidebar. This can be used to provide a quick description about the data or visualization.</p>
</dd></dl>

<dl class="last attribute">
<dt id="args.row_tip_callback">
<code class="descclassname">args.</code><code class="descname">row_tip_callback</code><a class="headerlink" href="#args.row_tip_callback" title="Permalink to this definition"></a></dt>
<dd><p>This</p>
</dd></dl>

</td>
</tr>
</tbody>
</table>
<p>Clustergrammer functions:</p>
<p>These functions can be run after the visualization is built to update the visualization.</p>
<dl class="function">
<dt id="update_cats">
<code class="descname">update_cats</code><span class="sig-paren">(</span><em>row_data</em><span class="sig-paren">)</span><a class="headerlink" href="#update_cats" title="Permalink to this definition"></a></dt>
Expand Down
4 changes: 4 additions & 0 deletions docs/_build_html/genindex.html
Original file line number Diff line number Diff line change
Expand Up @@ -160,11 +160,15 @@ <h1 id="index">Index</h1>
<h2 id="A">A</h2>
<table style="width: 100%" class="indextable genindextable"><tr>
<td style="width: 33%; vertical-align: top;"><ul>
<li><a href="clustergrammer_js.html#args.about">args.about (args attribute)</a>
</li>
<li><a href="clustergrammer_js.html#args.network_data">args.network_data (args attribute)</a>
</li>
</ul></td>
<td style="width: 33%; vertical-align: top;"><ul>
<li><a href="clustergrammer_js.html#args.root">args.root (args attribute)</a>
</li>
<li><a href="clustergrammer_js.html#args.row_tip_callback">args.row_tip_callback (args attribute)</a>
</li>
</ul></td>
</tr></table>
Expand Down
Binary file modified docs/_build_html/objects.inv
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/_build_html/searchindex.js

Large diffs are not rendered by default.

18 changes: 11 additions & 7 deletions docs/clustergrammer_js.rst
Original file line number Diff line number Diff line change
Expand Up @@ -58,23 +58,27 @@ Clustergrammer-JS' API allows users to pass options to the front-end visualizati

.. js:class:: Clustergrammer(args)

The Clusterrammer JavaScript object.
The Clusterrammer JavaScript object takes the ``args`` object and produces a visualization on the page.

:args: The visualization JSON as well as optional arguments will be passed here.
:args: This object contains

.. js:attribute:: args.network_data

This is where the visualization JSON should be passed.
This required attribute is where the visualization JSON should be passed as a JavaScript object.

.. js:attribute:: args.root

This required attribute is the ``id`` of the container where Clustergrammer will be built. Each Clustergrammer visualization in a page should be passed a unique ``id``.
This required attribute is the ``id`` (passed as a string) of the container where Clustergrammer will be built. Each Clustergrammer visualization in a page should be passed a unique ``id``.

.. :attribute:: args.about
.. js:attribute:: args.about

This op
This argument is a string (which can include HTML) that will produce a small about section at the top of the sidebar. This can be used to provide a quick description about the data or visualization.

Clustergrammer functions:
.. js:attribute:: args.row_tip_callback

This

These functions can be run after the visualization is built to update the visualization.

.. js:function:: update_cats(row_data)

Expand Down

0 comments on commit d143494

Please sign in to comment.