HybridChart
SvgPlate
, CanvasPlate
and DivPlate
.width
and height
by adding 'px'
.options.offset
format from object { x, y }
to array [x, y]
for consistency with v1-2.fitOptions
when calling .fit()
with no argument.Change from using DEFAULT_OPTIONS
variable to store default options to static function .getDefaultOptions()
that creates and returns a new Object. This resolve issues when the value in the options is not plain Object (for example, a scale) and multiple chart instances try to access and modify the default value (scale).
Rewrite the chart abstraction in es6 and split Skeleton
into SvgChart
and CanvasChart
, both extends from AbstractChart
. The resize/auto-resize logic are revisited and published as another library called slimfit
. (d3Kit wraps and includes slimfit by default.)
Make d3Kit compatible with D3 v4. Key changes are due to:
d3.functor
and d3.rebind
. Implement helper functions as replacements.d3.dispatch
. Now use dispatch.call('x', ...)
instead of dispatch.x(...)
The npm package also remove d3
from dependencies
and add d3-selection
and d3-dispatch
to peerDependencies
instead.
In terms of development, switch from grunt to gulp and webpack and prepare to migrate each module to es2015.
Add an option to select tag type for LayerOrganizer
new LayerOrganizer(container); //will create layers as <g> by default
new LayerOrganizer(container, 'div'); // will create layers as <div>
Change main file to point to d3kit.min.js
instead of d3kit.js
Update D3 version in the dependencies to 3.5.16
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。