- Fix issue #17
TypeError: d3KitTimeline is not a constructor
.
- Accessing the axis via
chart.axis
is deprecated. Please set theformatAxis
in options instead
- chart.axis.ticks(0)
+ chart.options({
+ formatAxis: axis => axis.ticks(0)
+ })
-
Calling
.resizeToFit()
requires a call to.visualize()
before it. -
Add
dotMouseenter
anddotMouseleave
events.
Draw axis when there is no data. Previous behavior will not draw anything or update the vis at all.
Support option textStyle
for customizing label text style, per this enhancement request #9.
Support mouseenter
and mouseleave
events. Thanks to this pull request.
Update dependency (d3kit)
Add .resizeToFit()
to address issue #5. If the direction is left or right, it will set the width automatically. If the direction is up or down, it will set the height automatically.
Update dependency
Instead of exporting d3Kit
and using the constructor via d3Kit.Timeline
, this library now return the chart constructor itself.
If you import via the <script>
tag
- new d3Kit.Timeline()
+ new d3KitTimeline()
If you import via AMD
- define(['d3kit-timeline'], function(d3Kit)){ ... }
+ define(['d3kit-timeline'], function(d3KitTimeline)){ ... }
If you import via CommonJS style
- var d3Kit = require('d3kit-timeline');
+ var d3KitTimeline = require('d3kit-timeline');
- Update labella version in the dependencies.
- Support Labella 1.x.x that changes API.
- Remove .npmignore and add prepublish script to show package size
- Do not pull unnecessary files when install via bower
- Add support for
scale
anddomain
in options. Thanks @timelyportfolio for the suggestions.