Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…dinates into brushextents

# Conflicts:
#	d3.parcoords.js
#	src/brushes/1D.js
# Fixes:
# Example setterForBrushes.html uses brushExtents() function
  • Loading branch information
Git-me-outta-here committed Feb 24, 2016
2 parents 16f4de3 + 2f5a83c commit 795f118
Show file tree
Hide file tree
Showing 25 changed files with 10,317 additions and 501 deletions.
44 changes: 26 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,31 +94,38 @@ If no dimensions have been specified, it will attempt to <a href="#parcoords_det

<a name="parcoords_dimensions" href="#parcoords_dimensions">#</a> parcoords.<b>dimensions</b>(*dimensions*)

If *dimensions* is specified, sets the quantitative dimensions to be visualized. The format is an array of dimension names. This will update the xscale domain, but will not trigger re-rendering of lines or axes.
If *dimensions* is specified, sets the quantitative dimensions to be visualized and custom formatting. The format is an object of dimension objects. This will update the xscale domain, but will not trigger re-rendering of lines or axes.

```javascript
var dimensions = ['protein', 'calcium', 'sodium'];
var dimensions = {
{"name":
{
orient: 'right',
type: 'string',
tickPadding: 0,
innerTickSize: 8,
type: "string"
}
},
{"protein": {type:"number"}},
{"calcium": {type:"number"}};
```
If no *dimensions* are specified, then it returns the currently set dimensions.
<a name="parcoords_types" href="#parcoords_types">#</a> parcoords.<b>types</b>(*object*)
Dimension attributes include:
If *types* is specified, sets the data types for the dimensions. The format is an object where the keys are dimension names and the values are type strings.
"title": String label for dimension
"type": Possible values include: String, Date and number. Detected types are automatically populated by <a href="#parcoords_detectDimensions">detectDimensions</a> using d3.parcoords.<strong>detectDimensionTypes</strong>.
"ticks": Number of horizontal ticks to include on y axis
"tickValues": Array of values to display for tick labels
"orient": Orientation of ticks and tickValues(left or right of axis)
"innerTickSize": Length of the horizontal ticks in between the top and bottom
"outerTickSize": Length of the horizontal ticks at the top and bottom
"tickPadding": Pixels to pad the tick title from the innerTickSize
"yscale": Type of scale to use for the axis(log, linear, ordinal)
"index": Integer position for ordering dimensions on the x axis
For example:

```javascript
var types = {
"name": "string",
"protein": "number",
"calcium": "number"
}
```

If no *types* are specified, then it returns the currently set types.

Detected types are automatically populated by <a href="#parcoords_detectDimensions">detectDimensions</a> using d3.parcoords.<strong>detectDimensionTypes</strong>.
<a name="parcoords_color" href="#parcoords_color">#</a> parcoords.<b>color</b>(*color*)
Expand Down Expand Up @@ -164,6 +171,7 @@ Update SVG axes. Call this after updating the dimension order.
1D-axes
1D-axes-multi
2D-strums
angular
```
<a name="parcoords_brushed" href="#parcoords_brushed">#</a> parcoords.<b>brushed</b>()
Expand Down Expand Up @@ -246,7 +254,7 @@ parcoords.margin({
<a name="parcoords_composite" href="#parcoords_composite">#</a> parcoords.<b>composite</b>()
Change foreground context's [globalCompositeOperation](https://developer.mozilla.org/en-US/docs/Canvas_tutorial/Compositing)
Change foreground context's [globalCompositeOperation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/globalCompositeOperation)
* source-over
* source-in
Expand Down
Loading

0 comments on commit 795f118

Please sign in to comment.