rickshaw

Rickshaw CSS/Axes in JSDOM

烂漫一生 提交于 2019-12-02 18:20:48
问题 I'm using Node on a server side application, to dynamically produce graphs. I'm using d3.js and rickshaw.js to create SVG versions of the graph, and imagemagick to convert that SVG into a png. I am using JSDOM as my DOM. I am getting this error: https://github.com/shutterstock/rickshaw/issues/186 The solution given here is to pull in the css, I found an answer on stack overflow on how to do this with JSDOM: How do you ad stylesheets to JSDOM So I've followed these instructions, and pulled in

Rickshaw CSS/Axes in JSDOM

☆樱花仙子☆ 提交于 2019-12-02 07:49:10
I'm using Node on a server side application, to dynamically produce graphs. I'm using d3.js and rickshaw.js to create SVG versions of the graph, and imagemagick to convert that SVG into a png. I am using JSDOM as my DOM. I am getting this error: https://github.com/shutterstock/rickshaw/issues/186 The solution given here is to pull in the css, I found an answer on stack overflow on how to do this with JSDOM: How do you ad stylesheets to JSDOM So I've followed these instructions, and pulled in a rickshaw.css. When I print the DOM to console, I can see it in the head, in a style element. var