d3 scale(x,y) ie 兼容問題

改用styles

官方中文:

https://github.com/d3/d3-selection-multi#d3-selection-multi

 

<script src="https://d3js.org/d3.v4.min.js"></script>
<script src="https://d3js.org/d3-selection-multi.v1.min.js"></script>

svg.attr("transform", "scale(1, -1)");  //用於chrome firefox
   svg.styles({"-ms-transform": "scale(1, -1)"}); // 用於IE

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章