[hotfix] load selectors in render

This commit is contained in:
Maxime Beauchemin
2017-01-19 15:27:01 -08:00
parent 4a9888157e
commit 0807a8d016
13 changed files with 22 additions and 23 deletions

View File

@@ -4,9 +4,9 @@ import cloudLayout from 'd3-cloud';
import { category21 } from '../javascripts/modules/colors';
function wordCloudChart(slice) {
const chart = d3.select(slice.selector);
function refresh() {
const chart = d3.select(slice.selector);
d3.json(slice.jsonEndpoint(), function (error, json) {
if (error !== null) {
slice.error(error.responseText, error);