Comments (1)
@xlzhangv
这个问题你暂时用字符串规避一下。例如:
d3.select('body').append('div')
.style('width','100px')
.style('height','100px')
.style('background','red')
.style('line-height',10)// 数字
.text('test');
改成:
d3.select('body').append('div')
.style('width','100px')
.style('height','100px')
.style('background','red')
.style('line-height','10')// 字符串
.text('test');
原因是:IE9严格按照W3C的标准来做,而其他的都做了隐式类型转换,参见:
https://msdn.microsoft.com/library/ff975226(v=vs.85).aspx
from d3.v4-api-translation.
Related Issues (8)
- 一个小建议 HOT 2
- 分类颜色方法名错误 HOT 1
- 是不是d3仍然搞不定大数据呢? HOT 2
- 层次布局 模块点击没有超链接(hierarchy)
- brush刷子单击未拖动,出现错误,后续代码无法正常执行
- link 描述是不是应该 HOT 1
- 文中4.x案例网页链接报404
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from d3.v4-api-translation.