Skip to content

Commit

Permalink
force text labels in parcoords to be 10px; revisit to iterate a bette…
Browse files Browse the repository at this point in the history
…r way to handle this
  • Loading branch information
timelyportfolio committed Jan 30, 2015
1 parent da18485 commit 6817d24
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
5 changes: 5 additions & 0 deletions inst/htmlwidgets/parcoords.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,11 @@ HTMLWidgets.widget({
d3.select("#" + el.id + " .dimension .axis > text").remove();
}

// sloppy but for now let's force text smaller
// ?? how best to provide parameter in R
d3.selectAll("#" + el.id + " svg text")
.style("font-size","10px");

// use expando to attach parcoords to the element
el.parcoords = parcoords;
// also attach the parallel coordinates to instance
Expand Down
10 changes: 8 additions & 2 deletions man/parcoords.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,19 @@ a function such as \code{d3.scale.category10()} and colorBy
is the column name from the data to determine color.}

\item{brushMode}{string, either \code{"1D-axes"} or \code{"2D-strums"},
giving the type of desired brush behavior for the chart}
giving the type of desired brush behavior for the chart. Currently
\code{brushMode = "2D-strums"} requires left margin = 0, so
this will change automatically and might result in unexpected
behavior.}

\item{reorderable}{logical enable reordering of axes}

\item{axisDots}{logical mark the points where polylines meet an axis with dots}

\item{margin}{list of sizes of margins in pixels}
\item{margin}{list of sizes of margins in pixels. Currently
\code{brushMode = "2D-strums"} requires left margin = 0, so
this will change automatically and might result in unexpected
behavior.}

\item{composite}{foreground context's composite type
see \href{https://github.com/syntagmatic/parallel-coordinates#parcoords_composite}{parcoords.composite}}
Expand Down

0 comments on commit 6817d24

Please sign in to comment.