Empirical
Classes | Functions
D3 Namespace Reference

Classes

class  ArcGenerator
 
class  AreaGenerator
 An area is defined by two lines, with the area in between shaded. More...
 
class  Axis
 
class  BaseLineGenerator
 
class  Category10Scale
 
class  Category20bScale
 
class  Category20cScale
 
class  Category20Scale
 
class  ChordGenerator
 
class  CSVDataset
 
class  D3_Base
 
class  Dataset
 
class  FormatFunction
 A callable string d3.format() string formatting function. More...
 
class  Histogram
 
struct  HistogramBin
 
class  IdentityScale
 
class  JSFunction
 Wrapper for creating functions in javascript and calling them there. More...
 
class  JSObject
 Catch-all object for storing references to things created in JS. More...
 
class  JSONDataset
 
struct  JSONTreeNode
 
class  Layout
 
class  LinearScale
 
class  LineGenerator
 Generator for regular old (cartesian) lines. More...
 
class  LinkGenerator
 
struct  LocNode
 
class  LogScale
 
class  OrdinalScale
 
class  PowScale
 
class  QuantileScale
 
class  QuantizeScale
 
class  RadialAreaGenerator
 
class  RadialLineGenerator
 
class  Scale
 
class  Selection
 
class  SelectionOrTransition
 
class  SvgShapeGenerator
 
class  SymbolGenerator
 
class  ThresholdScale
 
class  TileGrid
 
class  TimeScale
 
class  ToolTip
 Create a tooltup using the d3.tip Javascript library. More...
 
class  Transition
 
class  TreeLayout
 

Functions

template<typename SCALE_X_TYPE = D3::LinearScale, typename SCALE_Y_TYPE = D3::LinearScale>
void DrawAxes (Axis< SCALE_X_TYPE > &x_axis, Axis< SCALE_Y_TYPE > &y_axis, Selection &selection)
 
int NextD3ID ()
 
PowScale SqrtScale ()
 
Selection Select (std::string selector)
 
Selection SelectAll (std::string selector)
 
template<typename T >
Selection ShapesFromData (T values, std::string shape)
 
template<typename T >
Selection ShapesFromData (T values, std::string shape, Selection &svg)
 

Function Documentation

template<typename SCALE_X_TYPE = D3::LinearScale, typename SCALE_Y_TYPE = D3::LinearScale>
void D3::DrawAxes ( Axis< SCALE_X_TYPE > &  x_axis,
Axis< SCALE_Y_TYPE > &  y_axis,
Selection selection 
)

Helper function to draw a standard set of x and y axes Takes the desired x axis, y axis, and the selection on which to draw them

int D3::NextD3ID ( )
Selection D3::Select ( std::string  selector)

Create a selection containing the first DOM element matching [selector] (convenience function to match D3 syntax - you can also just use the constructor)

Selection D3::SelectAll ( std::string  selector)

Create a selection containing all DOM elements matching [selector] (convenience function to match D3 syntax - you can also just use the constructor)

template<typename T >
Selection D3::ShapesFromData ( values,
std::string  shape 
)

Makes a shape of type [shape] for each element in [values] on the first svg canvas on the DOM Values can be a D3::Dataset, an array, or a vector.

template<typename T >
Selection D3::ShapesFromData ( values,
std::string  shape,
Selection svg 
)

Makes a shape of type [shape] for each element in [values] on [svg], which must be a selection containing an SVG canvas. Values can be a D3::Dataset, an array, or a vector.

PowScale D3::SqrtScale ( )