Namespace: dc_graph

dc_graph

The entire dc.graph.js library is scoped under the dc_graph name space. It does not introduce anything else into the global name space.

Like in dc.js and most libraries built on d3, most dc_graph functions are designed to allow function chaining, meaning they return the current diagram instance whenever it is appropriate. The getter forms of functions do not participate in function chaining because they return values that are not the diagram.

Version:
  • <%= conf.pkg.version %>
Source:

Example

// Example chaining
diagram.width(600)
     .height(400)
     .nodeDimension(nodeDim)
     .nodeGroup(nodeGroup);

Classes

brush
cola_layout
constraint_pattern
d3_force_layout
d3v4_force_layout
dagre_layout
diagram
flexbox_layout
graphviz_attrs
graphviz_layout
layered_layout
tip
tree_layout

Namespaces

flat_group

Methods


<static> legend()

Legend

The dc_graph.legend shows labeled examples of nodes & edges, within the frame of a dc_graph.diagram.

Source: