我有这个d3js脚本应该创建一个词云。 Firefox上的一切都运行良好,但在Google Chrome上似乎有些东西无效。我认为问题在于:
ATTR( “变换”, “翻译(” + size_width / 2 + “200)”)
Dim wb1 As Workbook, wb2 As Workbook
Dim ws1 As Worksheet, ws2 As Worksheet
Dim LastRow As Long
Dim rng As Range
Set wb1 = Workbooks.Open("path to Workbook A", ReadOnly:=True)
Set wb2 = Workbooks("Workbook B")
Set ws1 = wb1.Sheets("Relevant Worksheet in A")
Set ws2 = wb2.Sheets("Relevant Worksheet in B")
LastRow = Cells(Rows.Count, "A").End(xlUp).Row
Set rng = ws1.Range("A3" & ":K" & LastRow)
rng.Copy
With ws2
.Cells(Cells(.Rows.Count, "D").End(xlUp).Row, 4).PasteSpecial Paste:=xlPasteAllUsingSourceTheme
End With
答案 0 :(得分:4)
在SVG 1.1中,许多元素支持transform属性,但<svg>
元素不支持。
在<svg>
元素上设置变换的能力是尚未完成的SVG 2规范中的新功能。 Firefox已经实现了SVG 2的那部分,但Chrome尚未实现。
您可以创建一个子<g>
元素并将其转换为解决方法。