我正在绘制折线图,并使其在FF和Chrome上正常工作。但是,当我在IE 11上运行相同的代码时,我的行没有出现,并且在控制台中出现了几百个错误,如下所示:
SVG4601: SVG Path data has incorrect format and could not be completely parsed.
Run Code Online (Sandbox Code Playgroud)
检查元素,我可以看到路径数据完全丢失:
<path class="line"
id="resource_statistics_chart1_summary_InitialMemoryInMB"
clip-path="url("#resource_statistics_chart1_clip")"
fill="#1f77b4"
stroke="#1f77b4"
transform=""
d="" />
Run Code Online (Sandbox Code Playgroud)
在Chrome上,相同的元素如下所示:
<path id="resource_statistics_chart1_summary_InitialMemoryInMB"
class="line"
clip-path="url(#resource_statistics_chart1_clip)"
fill="#1f77b4"
stroke="#1f77b4"
d="M0,125L1050,10.714285714285717"
transform="translate(0)">
</path>
Run Code Online (Sandbox Code Playgroud)
有谁能告诉我IE中发生了什么原因?