Skip to content
This repository is currently being migrated. It's locked while the migration is in progress.

Commit

Permalink
added new g.pie params to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
karolk committed Aug 19, 2012
1 parent 0d20ba2 commit 087bd78
Show file tree
Hide file tree
Showing 4 changed files with 271 additions and 264 deletions.
6 changes: 4 additions & 2 deletions docs/reference.html
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@
</p>
<pre class="javascript code"><code>r.linechart(<span class="d">0</span>, <span class="d">0</span>, <span class="d">99</span>, <span class="d">99</span>, [<span class="d">1</span>,<span class="d">2</span>,<span class="d">3</span>,<span class="d">4</span>,<span class="d">5</span>], [[<span class="d">1</span>,<span class="d">2</span>,<span class="d">3</span>,<span class="d">4</span>,<span class="d">5</span>], [<span class="d">1</span>,<span class="d">3</span>,<span class="d">9</span>,<span class="d">16</span>,<span class="d">25</span>], [<span class="d">100</span>,<span class="d">50</span>,<span class="d">25</span>,<span class="d">12</span>,<span class="d">6</span>]], {smooth: <b>true</b>, colors: [<i>'#F00'</i>, <i>'#0F0'</i>, <i>'#FF0'</i>], symbol: <i>'circle'</i>});
</code></pre>
</div><div class="Paper-piechart-section"><h3 id="Paper.piechart" class="dr-method"><i class="dr-trixie">&#160;</i>Paper.piechart(cx, cy, r, values, opts)<a href="#Paper.piechart" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 41 in the source" href="https://github.com/DmitryBaranovskiy/g.raphael/blob/master/g.pie.js#L41">&#x27ad;</a></h3>
</div><div class="Paper-piechart-section"><h3 id="Paper.piechart" class="dr-method"><i class="dr-trixie">&#160;</i>Paper.piechart(cx, cy, r, values, opts)<a href="#Paper.piechart" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 43 in the source" href="https://github.com/DmitryBaranovskiy/g.raphael/blob/master/g.pie.js#L43">&#x27ad;</a></h3>
<div class="extra" id="Paper.piechart-extra"></div></div><div class="dr-method"><p>Creates a pie chart
</p>
<p class="header">Parameters
Expand All @@ -424,7 +424,9 @@
<dd class="dr-type"><em class="dr-type-object">object</em></dd>
<dd class="dr-description">options for the chart</dd>
</dl>
<ol class="dr-json"><li>{<ol class="dr-json"><li><span class="dr-json-key">stroke</span><span class="dr-type"><em class="dr-type-string">string</em></span><span class="dr-json-description">color of the circle stroke in HTML color format [default <code>"#FFF"</code>]</span>
<ol class="dr-json"><li>{<ol class="dr-json"><li><span class="dr-json-key">minPercent</span><span class="dr-type"><em class="dr-type-number">number</em></span><span class="dr-json-description">minimal percent threshold which will have a slice rendered. Sliced corresponding to data points below this threshold will be collapsed into 1 additional slice. [default <code>1</code>]</span>
<li><span class="dr-json-key">maxSlices</span><span class="dr-type"><em class="dr-type-number">number</em></span><span class="dr-json-description">a threshold for how many slices should be rendered before collapsing all remaining slices into 1 additional slice (to focus on most important data points). [default <code>100</code>]</span>
<li><span class="dr-json-key">stroke</span><span class="dr-type"><em class="dr-type-string">string</em></span><span class="dr-json-description">color of the circle stroke in HTML color format [default <code>"#FFF"</code>]</span>
<li><span class="dr-json-key">strokewidth</span><span class="dr-type"><em class="dr-type-integer">integer</em></span><span class="dr-json-description">width of the chart stroke [default <code>1</code>]</span>
<li><span class="dr-json-key">init</span><span class="dr-type"><em class="dr-type-boolean">boolean</em></span><span class="dr-json-description">whether or not to show animation when the chart is ready [default <code>false</code>]</span>
<li><span class="dr-json-key">colors</span><span class="dr-type"><em class="dr-type-array">array</em></span><span class="dr-json-description">colors be used to plot the chart</span>
Expand Down
3 changes: 2 additions & 1 deletion docs/reference.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,14 @@ Raphael(function () {

prepare("Paper.popup-extra").popup(50, 50, "Hello", 'down');
prepare("Paper.tag-extra").tag(50, 50, "$9.99", 60);
prepare("Paper.drop-extra").drop(50, 50, "$10", 60);
prepare("Paper.drop-extra").drop(30, 70, "$9.99", 60);
prepare("Paper.flag-extra").flag(50, 50, "$9.99", 60);
prepare("Paper.label-extra").label(50, 50, "$9.99");
prepare("Paper.blob-extra").blob(50, 50, "Hello", 60);

prepare("Paper.dotchart-extra").dotchart(0, 0, 99, 99, [1, 2, 3, 4, 5], [1, 2, 3, 4, 5], [1, 2, 3, 4, 5], {max: 7, heat: true, gutter: 1, axisxstep: 4});
prepare("Paper.linechart-extra").linechart(0, 0, 99, 99, [1,2,3,4,5], [[1,2,3,4,5], [1,3,9,16,25], [100,50,25,12,6]], {smooth: true, colors: ['#F00', '#0F0', '#FF0'], symbol: 'circle', width: 1});
prepare("Paper.piechart-extra").piechart(50, 50, 47, [1,2,3,4,5]);

prepare("Element.lighter-extra").circle(50, 50, 20).attr(fill).lighter(6);
prepare("Element.darker-extra").circle(50, 50, 20).attr(fill).darker(6);
Expand Down
Loading

0 comments on commit 087bd78

Please sign in to comment.