From 90f6528300f5e6389be3bd24e86210e8a12edff1 Mon Sep 17 00:00:00 2001 From: Erik Date: Sat, 26 Dec 2015 12:54:00 +0100 Subject: [PATCH] fix: Invalid text attribute --- src/builder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/builder.js b/src/builder.js index f54573a..7b79a47 100644 --- a/src/builder.js +++ b/src/builder.js @@ -104,7 +104,7 @@ const treeBuilder = { .text(function(d) { return d.name; }) - .class('class', opts.styles.text) + .attr('class', opts.styles.text) .attr('x', tx) .attr('y', ty); },