score:1
Accepted answer
You're probably setting styles in css which htm2canvas doesn't have access to and therefore doesn't apply. If you set everything as attributes of the svg instead, it should work.
Source: stackoverflow.com
Related Query
- Text alignment changes on exporting d3js chart svg as png using html2canvas
- Vertical alignment between an SVG rect and SVG text using D3 and javascript
- Using D3 to generate SVG Pie Chart how to vertically align text
- Access the text within SVG object using d3js
- Using Sharp to turn svg to png corrupts text in node.js
- D3JS: help to create a SVG text element inside a circle using D3js
- Exporting svg to png or other image with styling, using JavaScript
- Save d3js dynamically generated svg chart to png directly on server side
- How to center align text labels on bar chart using d3js
- SVG to PNG Server side - using node.js
- Using d3js to make a candlestick or ohlc chart
- D3js : How to convert svg text to path?
- Making a SVG Text draggable using d3.js
- using foreignObject to add SVG dynamically using D3js
- Get click event from SVG bounding box using d3js
- D3js - Getting a line chart drawn, from "JSON data" input using d3.json
- Add text in rect svg and append it to arc in donut chart
- SVG text alignment issues with a curved textpath
- d3 custom bar chart bars using svg paths instead of rects
- How do I create a multiline chart using d3js with json formatted for nvd3?
- Change button text using D3js
- Match SVG text element id with data id using D3
- Using External json file for creating bubble chart using d3js
- How to add svg rectangles as background behind axis tick labels in d3js if ticks are inside chart
- Font style of text in svg not propagating to png on download
- Using d3js to calculate midpoints and curve path for quadratic SVG connectors
- Append text to animated bar chart in d3js
- How to append text to normalized stacked chart in d3js v4
- multi/grouped Bar chart using D3 alignment issue
- How to create SVG with grid lines using D3JS
More Query from same tag
- D3.js Highlighting links on node selection
- D3.js v5 - appending lines about a circle from length of array
- Making sense of D3 code
- adding multiple csv files in plotly template
- source code in tickSize d3.js v4
- How can I keep tick marks from repeating when I have a small number of dates on an nvd3 chart
- Forced directed D3 Graph setting specific image for each node
- javascript D3: how to remove an entire script via d3 or javascript
- Adding commas to large numbers in d3.js
- How to add value of bar on the barChart?
- d3.js update pattern not working as expected
- Javascript URL string adding %20 (space) after running grunt
- Angular2 D3 - CSS styling is not applied
- Font icon in SVG doesnt work in IE 11
- d3 version 4 issue with rectangle and text
- D3 put arc labels in a Pie Chart if there is enough space
- d3js Sunburst with Distortion > v4
- Add node specific links to forceSimulation force-directed graph in d3.js
- d3js multiple targets to a single node
- Hiding a tooltip with transition in d3
- d3 updates new elements transition in
- Placing Icon/Image upon a SVG shape properly?
- Typings for d3-cloud
- d3.layout.treemap in d3 version 4
- calling an axis based on one of data's attributes
- D3.js Gauge look like Telerik Radial Gauge
- Adding on-exit transition to D3 circle pack-based reusable module
- styling node label not working in d3 force directed graph
- D3 append a line or rect to fill pie chart values
- D3.js hexbin hexagonal color picker