mirror of
https://github.com/apache/superset.git
synced 2026-04-20 00:24:38 +00:00
[hotfix] load selectors in render
This commit is contained in:
@@ -4,7 +4,7 @@ import d3 from 'd3';
|
||||
require('./histogram.css');
|
||||
|
||||
function histogram(slice) {
|
||||
const div = d3.select(slice.selector);
|
||||
let div;
|
||||
|
||||
const draw = function (data, numBins) {
|
||||
// Set Margins
|
||||
@@ -128,6 +128,7 @@ function histogram(slice) {
|
||||
};
|
||||
|
||||
const render = function () {
|
||||
div = d3.select(slice.selector);
|
||||
d3.json(slice.jsonEndpoint(), function (error, json) {
|
||||
if (error !== null) {
|
||||
slice.error(error.responseText, error);
|
||||
|
||||
Reference in New Issue
Block a user