|
@@ -5,7 +5,7 @@
|
|
|
*/
|
|
|
|
|
|
import * as d3 from "d3";
|
|
|
-import jsdom from "jsdom";
|
|
|
+import * as nodom from "nodom";
|
|
|
import { getSeriesValues, RECORD_DELIMITER_OPTIONS, FIELD_DELIMITER_OPTIONS } from "../lib/Charts";
|
|
|
|
|
|
import Operation from "../Operation";
|
|
@@ -79,7 +79,7 @@ class SeriesChart extends Operation {
|
|
|
allSeriesHeight = Object.keys(series).length * (interSeriesPadding + seriesHeight),
|
|
|
svgHeight = allSeriesHeight + xAxisHeight + interSeriesPadding;
|
|
|
|
|
|
- const document = new jsdom.JSDOM().window.document;
|
|
|
+ const document = new nodom.Document();
|
|
|
let svg = document.createElement("svg");
|
|
|
svg = d3.select(svg)
|
|
|
.attr("width", "100%")
|