strokestringcolor of the circle stroke in HTML color format [default "#FFF"]
+
strokewidthintegerwidth of the chart stroke [default 1]
+
initbooleanwhether or not to show animation when the chart is ready [default false]
+
colorsarraycolors be used to plot the chart
+
hrefarrayurls to to set up clicks on chart slices
+
legendarrayarray containing strings that will be used in a legend. Other label options work if legend is defined.
+
legendcolorstringcolor of text in legend [default "#000"]
+
legendothersstringtext that will be used in legend to describe options that are collapsed into 1 slice, because they are too small to render [default "Others"]
+
legendmarkstringsymbol used as a bullet point in legend that has the same colour as the chart slice [default "circle"]
+
legendposstringposition of the legend on the chart [default "east"]. Other options are "north", "south", "west"
+
Set containing Elements of the chart axis. Only exists if 'axis' definition string was passed to Paper.dotchart
@@ -620,7 +729,9 @@
-
+
+
+
\ No newline at end of file
diff --git a/g.bar.js b/g.bar.js
index b1554a3..9f72387 100644
--- a/g.bar.js
+++ b/g.bar.js
@@ -135,9 +135,6 @@
}
}
- /*
- * vbarchart method on paper
- */
/*\
* Paper.vbarchart
[ method ]
@@ -152,13 +149,15 @@
- height (number) height of the chart (respected by all elements in the set)
- values (array) values
- opts (object) options for the chart
- - type (string) type of endings of the bar. Default: 'square'. Other options are: 'round', 'sharp', 'soft'.
- - gutter (number)(string) default '20%' (WHAT DOES IT DO?)
- - vgutter (number)
- - colors (array) colors be used repeatedly to plot the bars. If multicolumn bar is used each sequence of bars with use a different color.
- - stacked (boolean) whether or not to tread values as in a stacked bar chart
- - to
- - stretch (boolean)
+ o {
+ o type (string) type of endings of the bar. Default: 'square'. Other options are: 'round', 'sharp', 'soft'.
+ o gutter (number)(string) default '20%' (WHAT DOES IT DO?)
+ o vgutter (number)
+ o colors (array) colors be used repeatedly to plot the bars. If multicolumn bar is used each sequence of bars with use a different color.
+ o stacked (boolean) whether or not to tread values as in a stacked bar chart
+ o to
+ o stretch (boolean)
+ o }
**
= (object) path element of the popup
> Usage
@@ -424,9 +423,6 @@
return new VBarchart(this, x, y, width, height, values, opts);
};
- /*
- * barchart method on paper
- */
/*\
* Paper.barchart
[ method ]
@@ -441,13 +437,15 @@
- height (number) height of the chart (respected by all elements in the set)
- values (array) values
- opts (object) options for the chart
- - type (string) type of endings of the bar. Default: 'square'. Other options are: 'round', 'sharp', 'soft'.
- - gutter (number)(string) default '20%' (WHAT DOES IT DO?)
- - vgutter (number)
- - colors (array) colors be used repeatedly to plot the bars. If multicolumn bar is used each sequence of bars with use a different color.
- - stacked (boolean) whether or not to tread values as in a stacked bar chart
- - to
- - stretch (boolean)
+ o {
+ o type (string) type of endings of the bar. Default: 'square'. Other options are: 'round', 'sharp', 'soft'.
+ o gutter (number)(string) default '20%' (WHAT DOES IT DO?)
+ o vgutter (number)
+ o colors (array) colors be used repeatedly to plot the bars. If multicolumn bar is used each sequence of bars with use a different color.
+ o stacked (boolean) whether or not to tread values as in a stacked bar chart
+ o to
+ o stretch (boolean)
+ o }
**
= (object) path element of the popup
> Usage
diff --git a/g.pie.js b/g.pie.js
index aa7704a..116aece 100644
--- a/g.pie.js
+++ b/g.pie.js
@@ -18,19 +18,21 @@
**
- cx (number) x coordinate of the chart
- cy (number) y coordinate of the chart
- - r
+ - r (integer) radius of the chart
- values (array) values used to plot
- opts (object) options for the chart
- - stroke
- - strokewidth
- - init
- - colors (array)
- - href (array)
- - legend
- - legendcolor
- - legendothers
- - legendmark
- - legendpos
+ o {
+ o stroke (string) color of the circle stroke in HTML color format [default `"#FFF"`]
+ o strokewidth (integer) width of the chart stroke [default `1`]
+ o init (boolean) whether or not to show animation when the chart is ready [default `false`]
+ o colors (array) colors be used to plot the chart
+ o href (array) urls to to set up clicks on chart slices
+ o legend (array) array containing strings that will be used in a legend. Other label options work if legend is defined.
+ o legendcolor (string) color of text in legend [default `"#000"`]
+ o legendothers (string) text that will be used in legend to describe options that are collapsed into 1 slice, because they are too small to render [default `"Others"`]
+ o legendmark (string) symbol used as a bullet point in legend that has the same colour as the chart slice [default `"circle"`]
+ o legendpos (string) position of the legend on the chart [default `"east"`]. Other options are `"north"`, `"south"`, `"west"`
+ o }
**
= (object) path element of the popup
> Usage
diff --git a/g.raphael.json b/g.raphael.json
index 1a733c4..486dc3d 100644
--- a/g.raphael.json
+++ b/g.raphael.json
@@ -1,7 +1,7 @@
{
"title": "g.Raphaël",
"output": "../g.raphael/docs/reference.html",
- "scripts": ["../raphael-min.js", "../g.raphael.js", "../g.dot.js", "../g.line.js", "reference.js"],
+ "scripts": ["../raphael-min.js", "../g.raphael.js", "../g.line.js", "../g.dot.js", "../g.bar.js", "../g.pie.js", "reference.js"],
"files": [{
"url": "../g.raphael/g.raphael.js",
"link": "https://github.com/DmitryBaranovskiy/g.raphael/blob/master/g.raphael.js"
@@ -11,5 +11,12 @@
},{
"url": "../g.raphael/g.dot.js",
"link": "https://github.com/DmitryBaranovskiy/g.raphael/blob/master/g.dot.js"
+ },{
+ "url": "../g.raphael/g.bar.js",
+ "link": "https://github.com/DmitryBaranovskiy/g.raphael/blob/master/g.bar.js"
+ },
+ {
+ "url": "../g.raphael/g.pie.js",
+ "link": "https://github.com/DmitryBaranovskiy/g.raphael/blob/master/g.pie.js"
}]
}