Changing Font Styles

The font styles for any component in a d3plus visualization are accessible through nested labelConfig methods for each given component. For example, to override the default values passed to the TextBox class when constructing the labels associated with shapes:

var data = [
  {id: "alpha", value: 29},
  {id: "beta",  value: 10},
  {id: "gamma", value: 2},
  {id: "delta", value: 29},
  {id: "eta",   value: 25}
];

new d3plus.Treemap()
  .data(data)
  .groupBy("id")
  .shapeConfig({
    labelConfig: {
      fontFamily: "serif",
      fontMax: 100
    }
  })
  .sum("value")
  .render();