diff --git a/src/plot.js b/src/plot.js index a7383a66c7..7d4906636e 100644 --- a/src/plot.js +++ b/src/plot.js @@ -158,6 +158,8 @@ export function plot(options = {}) { context.ownerSVGElement = svg; context.className = className; context.projection = createProjection(options, subdimensions); + svg.setAttributeNS("http://www.w3.org/2000/xmlns/", "xmlns", "http://www.w3.org/2000/svg"); + svg.setAttributeNS("http://www.w3.org/2000/xmlns/", "xmlns:xlink", "http://www.w3.org/1999/xlink"); // Allows e.g. the axis mark to determine faceting lazily. context.filterFacets = (data, channels) => { diff --git a/test/output/aaplBollinger.svg b/test/output/aaplBollinger.svg index 1b83587f35..44a5797bc7 100644 --- a/test/output/aaplBollinger.svg +++ b/test/output/aaplBollinger.svg @@ -1,4 +1,4 @@ - + IOA - + BRN IOA - + null - + B - + USA - + -
+

-
+

-
+

-
+

-
+

-
+

-
+
Nuclear - + Y25-29 - + foo - + + null - + Gentoo - + b - + b c - + H4 - + Agree Strongly Agree - + Gentoo - + Torgersen - + Chinstrap Gentoo - + Gentoo - + Chinstrap Gentoo - +

Penguins

+

Penguins

male - + female male - + female male - + 6 - + 6 - +

A subtitle about body_mass_g

Chinstrap Gentoo - +

A fancy title about penguins

- A fancy subtitle + A fancy subtitle ≥6,000 ≥8,000 - + Elderly 65+ - + +

…by age and sex. Data: Eurostat

Y20-24 Y25-29 - +